POSTARYX

Reddit

How to add Reddit to your system

These are your credentials with the platform, not Postiz credentials.

The keys on this page belong to a developer app you register with the platform. Nobody from Postiz will ever ask for them.

Keep them in your environment or a secret manager, never in a committed .env file, and rotate them at the platform if they leak.

Create an app on Reddit Developers

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 a successful login. This needs to be set to your Postiz FRONTEND_URL + /integrations/social/ + {provider}.

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

Your Reddit OAuth2 Redirect URI:

  • Production: https://your-postiz-domain.com/integrations/social/reddit
  • Local development: http://localhost:4200/integrations/social/reddit
  • Docker: http://localhost:5000/integrations/social/reddit

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=""