From 13a14bf70fe7d8eff90b4e60a916dba237a84f45 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 30 Nov 2022 11:21:31 +0100 Subject: [PATCH] PonyConf: Tell Django when the request is from HTTPS. --- ponyconf.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ponyconf.yml b/ponyconf.yml index 916e48e..c1e61a3 100644 --- a/ponyconf.yml +++ b/ponyconf.yml @@ -95,7 +95,7 @@ location / { proxy_pass http://unix:{{ ponyconf_home }}/ponyconf.sock; proxy_set_header Host $host; - proxy_set_header X-Forwarded-Protocol $scheme; + proxy_set_header X-Forwarded-Proto $scheme; } } @@ -134,7 +134,7 @@ SECRET_KEY = "{{ ponyconf_secret }}" ALLOWED_HOSTS = {{ ponyconf_sites | map(attribute='domain') | to_json }} - + SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') DEBUG = False LOGGING = { "version": 1,