forked from AFPy/infra
PonyConf: Tell Django when the request is from HTTPS.
This commit is contained in:
parent
ea39c0eb41
commit
13a14bf70f
|
@ -95,7 +95,7 @@
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://unix:{{ ponyconf_home }}/ponyconf.sock;
|
proxy_pass http://unix:{{ ponyconf_home }}/ponyconf.sock;
|
||||||
proxy_set_header Host $host;
|
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 }}"
|
SECRET_KEY = "{{ ponyconf_secret }}"
|
||||||
ALLOWED_HOSTS = {{ ponyconf_sites | map(attribute='domain') | to_json }}
|
ALLOWED_HOSTS = {{ ponyconf_sites | map(attribute='domain') | to_json }}
|
||||||
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
LOGGING = {
|
LOGGING = {
|
||||||
"version": 1,
|
"version": 1,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user