# Database (PostgreSQL) # For local development, you can use a local PostgreSQL instance or a free cloud provider: # - Local: postgresql://user:password@localhost:5432/tokscale # - Railway: postgresql://...@...railway.app:5432/railway # - Neon: postgresql://...@...neon.tech/tokscale # - Vercel Postgres: postgres://...@...vercel-storage.com/verceldb DATABASE_URL=postgresql://user:password@localhost:5432/tokscale # GitHub OAuth (for authentication) # Create a GitHub OAuth App at: https://github.com/settings/developers # - Homepage URL: http://localhost:3000 # - Authorization callback URL: http://localhost:3000/api/auth/github/callback GITHUB_CLIENT_ID=your_github_client_id GITHUB_CLIENT_SECRET=your_github_client_secret # Required to enable the leaderboard moderation screen. Comma-separated GitHub # numeric account IDs. Leave unset to disable moderation access everywhere. # TOKSCALE_ADMIN_GITHUB_IDS=32605822 # Public URL (used at runtime for OAuth redirects, CSRF checks, canonical # metadata, sitemap, and robots) # For local development: http://localhost:3000 # For production: https://your-domain.com # The origin of this URL is automatically allowed for cookie-authenticated # mutating requests (creating API tokens, managing groups, etc.). APP_URL=http://localhost:3000 # Optional: Extra origins allowed for cookie-authenticated mutating requests. # Comma-separated. Only needed when the app is served from origins other than # APP_URL (e.g. multiple domains in front of one deployment). # When set, this REPLACES the default allowlist (https://tokscale.ai, # http://localhost:3000) — but the APP_URL origin is always allowed. # CSRF_ALLOWED_ORIGINS=https://your-domain.com,https://alt.your-domain.com # Optional: Session secret (auto-generated if not set) # AUTH_SECRET=your_random_secret_string