1.1 KiB
1.1 KiB
Environment Variables
Set these in the target app or in the app's local env files.
AUTH_PORT- auth service port, default8787NODE_ENV- enables stricter secret checks outside developmentJWT_SECRET- signing secret for access tokensACCESS_TOKEN_TTL- access token lifetime, default15mREFRESH_TOKEN_TTL_DAYS- refresh session lifetime, default30COOKIE_NAME- refresh token cookie name, defaultgopvp_refreshCOOKIE_SECURE- set totruefor HTTPS deploymentsCOOKIE_SAME_SITE- cookie same-site mode, defaultlaxAUTH_CLIENTS_FILE- optional path to a JSON client mapAUTH_CLIENTS_JSON- optional inline JSON client mapFRONTEND_ORIGIN- legacy single-origin fallbackDISCORD_CLIENT_ID- legacy single-origin fallbackDISCORD_CLIENT_SECRET- legacy single-origin fallbackDISCORD_SCOPES- legacy single-origin fallback, defaultidentify,emailALLOWLIST_DISCORD_IDS- legacy single-origin fallback, comma-separated Discord user IDsDEFAULT_FEATURE_KEYS- feature flags granted to allowlisted users
Keep secrets out of committed files and copy them into local environment files instead.