# AI Threat Modeler — environment variables # Copy this file to .env and fill in real values. # REQUIRED IN PRODUCTION # JWT signing secret. Used to mint and verify the auth tokens stored in # localStorage by the frontend. The backend will refuse to boot in # NODE_ENV=production without this. Generate a strong value with: # openssl rand -hex 32 JWT_SECRET= # Frontend -> backend URL (browser-side). Defaults to http://localhost:3001/api # in compose. NEXT_PUBLIC_API_URL=http://localhost:3001/api # Comma-separated list of browser origins allowed to make state-changing # (POST/PUT/PATCH/DELETE) requests and cross-origin requests. Used by both the # CORS policy and the same-origin CSRF guard. # Defaults to http://localhost:3000,http://127.0.0.1:3000 (the Next.js dev # server / docker-compose frontend mapping). #ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000 # Optional: tune auth-endpoint rate limiting (CWE-307). Defaults are 100 # requests / 15 min for general auth routes and 10 / 15 min for login/register. #RATE_LIMIT_AUTH_MAX=100 #RATE_LIMIT_LOGIN_MAX=10 # Optional: container UID/GID for bind-mounted volumes. UID=502 GID=502