diff --git a/src/core/settings.py b/src/core/settings.py index 529c4b3..b2f8bbc 100644 --- a/src/core/settings.py +++ b/src/core/settings.py @@ -34,6 +34,10 @@ ALLOWED_HOSTS = env("DJANGO_ALLOWED_HOSTS", "localhost").split(" ") +# Reverse proxy settings +USE_X_FORWARDED_HOST = True +SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") + # Application definition