.env.example•1.6 kB
# Reddit OAuth Application Credentials
# These are YOUR app's credentials from Reddit, NOT user tokens
# Create a Reddit app at: https://www.reddit.com/prefs/apps
# App type should be "web app" with redirect URI matching REDIRECT_URL below
REDDIT_CLIENT_ID=your_reddit_client_id_here
REDDIT_CLIENT_SECRET=your_reddit_client_secret_here
# JWT Secret for MCP token signing
# The MCP server creates its own JWT tokens that contain Reddit OAuth tokens
# Generate a secure random string (e.g., openssl rand -base64 32)
JWT_SECRET=your-super-secure-jwt-secret-key-here-make-it-long-and-random
# Server Configuration
PORT=3000
# OAuth Configuration
# The following are automatically constructed from PORT
# Only set these if you need to override the defaults
# OAUTH_ISSUER=http://localhost:3000
# REDIRECT_URL=http://localhost:3000/oauth/reddit/callback
# Reddit API Identity Configuration
# IMPORTANT: These identify your APPLICATION to Reddit, not the end users
# Reddit requires a specific User-Agent format for all API requests
# Format: <platform>:<app_id>:<version> (by /u/<developer_reddit_username>)
# Example: linux:my-reddit-app:v1.0.0 (by /u/my_developer_account)
# Note: The username should be YOUR (the developer's) Reddit account, not end users
REDDIT_USER_AGENT=YourApp:v1.0.0 (by /u/YourRedditUsername)
# Your Reddit developer account username (without /u/ prefix)
# This is used to construct the User-Agent string for API compliance
# It should be the Reddit account that registered the OAuth app
REDDIT_USERNAME=your-reddit-username
# Optional - Logging
# LOG_LEVEL=info
# DEBUG=false