From bf2472fd21da1b06a43ae19b74383a46f7fda2c8 Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Thu, 24 Nov 2022 01:35:48 +0900 Subject: [PATCH] smores --- deployment/frogress/entrypoint.sh | 2 +- frogress/settings.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deployment/frogress/entrypoint.sh b/deployment/frogress/entrypoint.sh index 2997fc2..560a5f4 100755 --- a/deployment/frogress/entrypoint.sh +++ b/deployment/frogress/entrypoint.sh @@ -7,4 +7,4 @@ done poetry run python manage.py migrate -poetry run gunicorn frogress.wsgi +poetry run gunicorn frogress.wsgi -b 0.0.0.0:8000 diff --git a/frogress/settings.py b/frogress/settings.py index ee9d07b..86dec4f 100644 --- a/frogress/settings.py +++ b/frogress/settings.py @@ -8,6 +8,7 @@ env = environ.Env( DEBUG=(bool, False), DJANGO_LOG_LEVEL=(str, "INFO"), ALLOWED_HOSTS=(list, []), + CSRF_TRUSTED_ORIGINS=(list, []), ULTIMATE_API_KEY=(str, ""), SECURE_SSL_REDIRECT=(bool, False), SECURE_HSTS_SECONDS=(int, 0), @@ -26,6 +27,7 @@ SECRET_KEY = env("SECRET_KEY") DEBUG = env("DEBUG") DJANGO_LOG_LEVEL = env("DJANGO_LOG_LEVEL") ALLOWED_HOSTS = env("ALLOWED_HOSTS") +CSRF_TRUSTED_ORIGINS = env("CSRF_TRUSTED_ORIGINS") ULTIMATE_API_KEY = env("ULTIMATE_API_KEY") SECURE_SSL_REDIRECT = env("SECURE_SSL_REDIRECT")