asdf
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
# Flask app location (required for database migrations)
|
# Flask app location (required for database migrations)
|
||||||
FLASK_APP=backend.app:create_app
|
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
|
# Authelia OIDC Configuration
|
||||||
# REQUIRED: Set these values to match your Authelia instance
|
# REQUIRED: Set these values to match your Authelia instance
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,10 @@
|
|||||||
# Flask app location
|
# Flask app location
|
||||||
FLASK_APP=backend.app:create_app
|
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)
|
# Backend port (defaults to 5001 if not set)
|
||||||
PORT=5001
|
PORT=5001
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# Basic configuration - Caddy handles SSL automatically
|
# Basic configuration - Caddy handles SSL automatically
|
||||||
trivia.torrtle.co {
|
trivia.torrtle.co {
|
||||||
# Reverse proxy to Flask app
|
# Reverse proxy to Flask app (use localhost:5001, not :5001)
|
||||||
reverse_proxy localhost:5001
|
reverse_proxy localhost:5001
|
||||||
|
|
||||||
# Increase client upload size for images (default is 10MB)
|
# Increase client upload size for images (default is 10MB)
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ trivia.torrtle.co {
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# IMPORTANT: Use localhost:5001, not just :5001
|
||||||
|
|
||||||
# Start Caddy
|
# Start Caddy
|
||||||
sudo systemctl restart caddy
|
sudo systemctl restart caddy
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ sudo systemctl status caddy
|
|||||||
**Simple Caddyfile (minimal):**
|
**Simple Caddyfile (minimal):**
|
||||||
```caddy
|
```caddy
|
||||||
trivia.torrtle.co {
|
trivia.torrtle.co {
|
||||||
reverse_proxy localhost:5001
|
reverse_proxy localhost:5001 # Important: use localhost:5001, not :5001
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- FLASK_APP=backend.app:create_app
|
- FLASK_APP=backend.app:create_app
|
||||||
- FLASK_ENV=production
|
- FLASK_ENV=production
|
||||||
|
- SECRET_KEY=${SECRET_KEY}
|
||||||
- PORT=5001
|
- PORT=5001
|
||||||
- DATABASE_URI=sqlite:////app/backend/instance/trivia.db
|
- DATABASE_URI=sqlite:////app/backend/instance/trivia.db
|
||||||
- CORS_ORIGINS=${CORS_ORIGINS:-*}
|
- CORS_ORIGINS=${CORS_ORIGINS:-*}
|
||||||
|
|||||||
Reference in New Issue
Block a user