productionize

This commit is contained in:
2026-01-12 21:23:08 -05:00
parent dc1ac54b8c
commit 0158f2808f
7 changed files with 518 additions and 0 deletions

23
.env.production.example Normal file
View File

@@ -0,0 +1,23 @@
# Production Environment Variables
# Copy this file to .env.production and fill in the values
# Backend port (defaults to 5001 if not set)
PORT=5001
# CORS origins (use your domain in production, or * to allow all)
CORS_ORIGINS=https://trivia.torrtle.co
# Authelia OIDC Configuration
# REQUIRED: Set these values to match your Authelia instance
OIDC_ISSUER=https://auth.torrtle.co
OIDC_CLIENT_ID=trivia-app
OIDC_CLIENT_SECRET=your_client_secret_here
# OAuth redirect URI (must match your domain)
OIDC_REDIRECT_URI=https://trivia.torrtle.co/api/auth/callback
# Frontend URL (must match your domain)
FRONTEND_URL=https://trivia.torrtle.co
# Cookie security (set to 'true' in production with HTTPS)
SESSION_COOKIE_SECURE=true