This commit is contained in:
2026-01-12 21:44:30 -05:00
parent 75f4b93c4b
commit a69d704284
6 changed files with 13 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
# Flask app location (required for database migrations)
FLASK_APP=backend.app:create_app
# Flask secret key (optional in development, REQUIRED in production)
# Generate with: python3 -c "import secrets; print(secrets.token_hex(32))"
# SECRET_KEY=your-secret-key-here
# Authelia OIDC Configuration
# REQUIRED: Set these values to match your Authelia instance

View File

@@ -4,6 +4,10 @@
# Flask app location
FLASK_APP=backend.app:create_app
# Flask secret key (REQUIRED for production)
# Generate with: python3 -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=CHANGE_ME_TO_A_RANDOM_SECRET_KEY
# Backend port (defaults to 5001 if not set)
PORT=5001

View File

@@ -3,7 +3,7 @@
# Basic configuration - Caddy handles SSL automatically
trivia.torrtle.co {
# Reverse proxy to Flask app
# Reverse proxy to Flask app (use localhost:5001, not :5001)
reverse_proxy localhost:5001
# Increase client upload size for images (default is 10MB)

View File

@@ -57,6 +57,8 @@ trivia.torrtle.co {
}
EOF
# IMPORTANT: Use localhost:5001, not just :5001
# Start Caddy
sudo systemctl restart caddy
```

View File

@@ -99,7 +99,7 @@ sudo systemctl status caddy
**Simple Caddyfile (minimal):**
```caddy
trivia.torrtle.co {
reverse_proxy localhost:5001
reverse_proxy localhost:5001 # Important: use localhost:5001, not :5001
}
```

View File

@@ -22,6 +22,7 @@ services:
environment:
- FLASK_APP=backend.app:create_app
- FLASK_ENV=production
- SECRET_KEY=${SECRET_KEY}
- PORT=5001
- DATABASE_URI=sqlite:////app/backend/instance/trivia.db
- CORS_ORIGINS=${CORS_ORIGINS:-*}