asdf
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -57,6 +57,8 @@ trivia.torrtle.co {
|
||||
}
|
||||
EOF
|
||||
|
||||
# IMPORTANT: Use localhost:5001, not just :5001
|
||||
|
||||
# Start Caddy
|
||||
sudo systemctl restart caddy
|
||||
```
|
||||
|
||||
@@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -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:-*}
|
||||
|
||||
Reference in New Issue
Block a user