Create an app on Reddit Developerrs

Head over to Reddit developers and click on create a new app.

  • Name: MyPostizInstance (or whatever you like)
  • App type: web app
  • Redirect URI: (see below)

The OAuth2 Redirect URI is the location where the provider will redirect to after trying to login. This needs to set to your Postiz FRONTEND_URL + /integrations/social/ + reddit.

  • eg: If you are running on a container, and your Postiz URL is: https://postiz.example.com, then your OAuth2 Redirect URI is https://postiz.example.com/integrations/social/reddit
  • eg: If you are running on localhost, and your Postiz URL is http://localhost:4200, then your OAuth2 Redirect URI is http://localhost:4200/integrations/social/reddit

You only need to set one OAuth2 Redirect URI when you are setting up your Postiz app.

Set environment variables

Copy the Reddit client id and client secret and add them to your .env file.

Reddit

REDDIT_CLIENT_ID=""
REDDIT_CLIENT_SECRET=""