fix: add TLS proto forwarding and, imprint and privacy policy

This commit is contained in:
Administrator 2023-08-22 16:39:48 +02:00 committed by Gitea
parent 1fa8d1a7a3
commit 16a5848ab3
2 changed files with 4 additions and 4 deletions

View File

@ -29,10 +29,8 @@ ALLOWED_HOSTS = [ '*' ]
# Force HttpRequest.build_absolute_uri() to generate HTTPS links in production # Force HttpRequest.build_absolute_uri() to generate HTTPS links in production
# This is necessary when running behind a reverse proxy # This is necessary when running behind a reverse proxy
#USE_X_FORWARDED_HOST = False if DEBUG else True USE_X_FORWARDED_HOST = False if DEBUG else True
#SECURE_PROXY_SSL_HEADER = () if DEBUG else ('HTTP_X_FORWARDED_PROTO', 'https') 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')
# Application definition # Application definition

View File

@ -1,3 +1,5 @@
<div class="flex gap-4 justify-center items-center p-2 bg-primary-100 text-sm text-background"> <div class="flex gap-4 justify-center items-center p-2 bg-primary-100 text-sm text-background">
<p>&copy; 2023 Julian Lobbes</p> <p>&copy; 2023 Julian Lobbes</p>
<a href="https://lobbes.dev/imprint">Imprint</a>
<a href="https://lobbes.dev/privacy-policy">Privacy Policy</a>
</div> </div>