Environment Variables
This document describes the environment variables required for the AREA server.
Server Configuration
PORT- Port number for the server
TIP
Port Is not used in the Dockerfile.
SALT_ROUNDS- Number of salt rounds for password hashing (Recommended: 10 or more)JWT_SECRET- Secret key for JWT token generation (Used for user authentication)JWT_FORGOT_PASSWORD_SECRET- Secret key for password reset tokens (Used for password reset)REDIRECT_URI- OAuth redirect URI, the base URL of the client application
Email
See Email for more information.
RESEND_API_KEY- API key for Resend email serviceRESEND_DOMAIN- Domain configured for Resend
Services
GitHub
See GitHub OAuth Apps for more information.
GITHUB_ID- GitHub OAuth application client IDGITHUB_SECRET- GitHub OAuth application client secretGITHUB_APP- GitHub App identifier
Google
See Google OAuth2 for more information.
GOOGLE_ID- Google OAuth client IDGOOGLE_SECRET- Google OAuth client secret
Discord
See Discord OAuth2 for more information.
DISCORD_ID- Discord application client IDDISCORD_SECRET- Discord application client secretDISCORD_BOT_TOKEN- Discord bot token
Microsoft
See Microsoft OAuth2 for more information.
MICROSOFT_TENANT- Microsoft Azure tenant IDMICROSOFT_ID- Microsoft application client IDMICROSOFT_SECRET- Microsoft application client secret
Database
DATABASE_URL- PostgreSQL connection URL (e.g.postgres://user:password@host:port/database)POSTGRES_USER- PostgreSQL usernamePOSTGRES_PASSWORD- PostgreSQL passwordPOSTGRES_DB- PostgreSQL database name