From 16a5848ab38bab6be711de6a58470cb2cc68435d Mon Sep 17 00:00:00 2001 From: Administrator Date: Tue, 22 Aug 2023 16:39:48 +0200 Subject: [PATCH] fix: add TLS proto forwarding and, imprint and privacy policy --- app/core/settings.py | 6 ++---- app/core/templates/core/footer.html | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/core/settings.py b/app/core/settings.py index 4d2b858..a1effae 100644 --- a/app/core/settings.py +++ b/app/core/settings.py @@ -29,10 +29,8 @@ ALLOWED_HOSTS = [ '*' ] # Force HttpRequest.build_absolute_uri() to generate HTTPS links in production # This is necessary when running behind a reverse proxy -#USE_X_FORWARDED_HOST = False if DEBUG else True -#SECURE_PROXY_SSL_HEADER = () if DEBUG else ('HTTP_X_FORWARDED_PROTO', 'https') -USE_X_FORWARDED_HOST = True -SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') +USE_X_FORWARDED_HOST = False if DEBUG else True +SECURE_PROXY_SSL_HEADER = () if DEBUG else ('HTTP_X_FORWARDED_PROTO', 'https') # Application definition diff --git a/app/core/templates/core/footer.html b/app/core/templates/core/footer.html index ea7ad65..10a0d70 100644 --- a/app/core/templates/core/footer.html +++ b/app/core/templates/core/footer.html @@ -1,3 +1,5 @@

© 2023 Julian Lobbes

+ Imprint + Privacy Policy