# Server encryption key for API key storage (generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))") ENCRYPTION_KEY=your-64-char-hex-key-here # Server port (default: 3001) PORT=3001 # Docker only: which host interface the container's port is published on. # Defaults to 127.0.0.1, so the dashboard/API is reachable only from the # machine running Docker. To open it to other devices on your LAN (e.g. a # Raspberry Pi reached at http://192.168.1.x:3001), set HOST_BIND=0.0.0.0. # Only do this on a trusted network — the proxy is single-user and guarded # only by the unified API key. # HOST_BIND=0.0.0.0 # Max /v1 proxy requests per minute per client IP (default: 120). Set to 0 # to disable proxy rate limiting. # PROXY_RATE_LIMIT_RPM=120 # Request analytics retention. Set either value to 0 to disable that limit. REQUEST_ANALYTICS_RETENTION_DAYS=90 REQUEST_ANALYTICS_MAX_ROWS=100000 # Comma-separated extra origins allowed to call the API from a browser. # localhost:5173, 127.0.0.1:5173, [::1]:5173 are allowed by default for the # Vite dev dashboard. Only set this if you serve the dashboard from a # different host than the API (e.g. http://my-server.local). # DASHBOARD_ORIGINS=http://my-server.local,http://192.168.1.50