Environment Variables
Environment Variables
Section titled “Environment Variables”See the Configuration page for the full environment variable reference.
This page covers production-specific considerations.
Production Settings
Section titled “Production Settings”# Set release mode to disable debug output and enable optimizationsGIN_MODE=release
# Reduce log verbosity in productionLOG_LEVEL=info
# Use a persistent, backed-up database pathSQLITE_PATH=/data/talesmud.db
# Enable Auth0 for real authenticationAUTH_ENABLED=trueAUTH0_AUDIENCE=https://yourdomain.com/apiAUTH0_DOMAIN=https://your-tenant.auth0.com/AUTH0_WK_JWKS=https://your-tenant.auth0.com/.well-known/jwks.jsonSecurity Checklist
Section titled “Security Checklist”-
GIN_MODE=release— prevents debug stack traces in responses -
ADMIN_PASSWORDis a strong unique password (if not using Auth0) -
AUTH_ENABLED=truewith Auth0 for public deployments - Database file is outside the Docker container (volume mounted)
- Database file has restricted permissions (
chmod 600) - HTTPS enabled via Nginx + Let’s Encrypt