Fixes: fix ALLOWED_HOSTS for prometheus container
This commit is contained in:
parent
520b8ee8f7
commit
546234c68c
1 changed files with 10 additions and 1 deletions
|
|
@ -9,7 +9,16 @@ BASE_DIR = Path(__file__).resolve().parent.parent.parent
|
|||
SECRET_KEY = getenv("SECRET_KEY")
|
||||
DEBUG = bool(int(getenv("DEBUG")))
|
||||
|
||||
ALLOWED_HOSTS = ["*"] if DEBUG else getenv("ALLOWED_HOSTS").split(" ")
|
||||
ALLOWED_HOSTS = ["app:8000",
|
||||
"worker:8000",
|
||||
"beat:8000",
|
||||
"localhost:8000",
|
||||
"api.localhost:8000",
|
||||
"b2b.localhost:8000",
|
||||
"127.0.0.1:8000",
|
||||
"api.127.0.0.1:8000",
|
||||
"b2b.127.0.0.1:8000"]
|
||||
ALLOWED_HOSTS.extend(["*"] if DEBUG else getenv("ALLOWED_HOSTS").split(" "))
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = getenv("CSRF_TRUSTED_ORIGINS").split(" ")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue