mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-06 14:04:12 +00:00
feat: configure ALLOWED_HOSTS dynamically via environment variables in settings and docker-compose
This commit is contained in:
@@ -36,6 +36,8 @@ SECRET_KEY = os.getenv(
|
||||
"SECRET_KEY", "django-insecure-mqcnrs5!hc6bj$�@@9d8^2@x#w&$qhk3vlr5_)3znd9h6&d8"
|
||||
)
|
||||
|
||||
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "*").split(",")
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = os.getenv("DEBUG", "True") == "True"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user