Prepare accounting backend for production behind nginx and CDN proxy.
Add reverse-proxy settings, stricter CORS origin parsing, and production env defaults for acc.zoneco.org and the admin panel.
This commit is contained in:
@@ -9,8 +9,14 @@ ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0,testserver
|
||||
# DATABASE_URL=postgresql://postgres:postgres@localhost:5432/funzone_accounting
|
||||
|
||||
# CORS (the accounting frontend dev server runs on port 5176)
|
||||
# Production: set CORS_ALLOW_ALL_ORIGINS=False and include https://admin.zoneco.org
|
||||
CORS_ALLOW_ALL_ORIGINS=True
|
||||
CORS_ALLOWED_ORIGINS=http://localhost:5176,http://127.0.0.1:5176,http://localhost:3006,http://127.0.0.1:3006
|
||||
CORS_ALLOWED_ORIGINS=http://localhost:5176,http://127.0.0.1:5176,http://localhost:3006,http://127.0.0.1:3006,https://admin.zoneco.org
|
||||
|
||||
# Production (behind nginx / CDN)
|
||||
# ALLOWED_HOSTS=acc.zoneco.org,localhost,127.0.0.1,accounting-backend
|
||||
# USE_X_FORWARDED_HOST=True
|
||||
# SECURE_PROXY_SSL_HEADER=True
|
||||
|
||||
# Docker: persist SQLite in a named volume
|
||||
# SQLITE_PATH=/data/db.sqlite3
|
||||
|
||||
Reference in New Issue
Block a user