You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mastodon client registration is not done via ther web interface, but by talking to the API directly. In the example below, we use `curl` to register a new client.
14
+
Mastodon client registration is not done via the web interface, but by talking to the API directly. In the example below, we use `curl` to register a new client.
15
15
16
16
Optionally check that you have `jq` installed on your system. You can normally install this with brew, apt-get, yum or chocolatey. If you don't have `jq` installed, you can remove it from the command below.
17
17
18
18
<OAuth2Redirectprovider="mastodon" />
19
19
20
+
<Callouttype="info">
21
+
The examples on this page use `https://mastodon.social` as the default Mastodon instance. If you are setting up Postiz to connect to a different self-hosted Mastodon instance (e.g., `https://fosstodon.org`), you must replace `https://mastodon.social` with your instance's URL in the `curl` command below. You will also need to ensure the `MASTODON_URL` environment variable in your application's `.env` file (or equivalent configuration for Docker, etc.) is set to your custom instance's URL.
22
+
</Callout>
23
+
20
24
Run the following curl command in a terminal to get the Mastodon client id and client secret.
21
25
22
26
```bash
@@ -31,7 +35,7 @@ This will give you output that looks something like this;
@@ -42,6 +46,7 @@ Make a note of your `client_id` and `client_secret` and add them to your `.env`
42
46
```env
43
47
MASTODON_CLIENT_ID="shown in the output from the above command"
44
48
MASTODON_CLIENT_SECRET="shown in the output from the above command"
49
+
MASTODON_URL="https://mastodon.social" # Change this if connecting to a different instance
45
50
```
46
51
47
52
Stop Postiz if it is running, and then start it using the .env file with the Mastodon details. Click through the new channel setup and you should be asked to login on Mastodon.
0 commit comments