We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c571e commit 81d8ac5Copy full SHA for 81d8ac5
etc/nginx/conf.d/default.conf
@@ -8,7 +8,6 @@ server {
8
location / {
9
proxy_pass http://gunicorn_app;
10
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
11
- proxy_set_header X-Forwarded-Proto https;
12
proxy_set_header Host $host;
13
proxy_redirect off;
14
client_max_body_size 10G;
scancodeio/settings.py
@@ -108,7 +108,9 @@
108
109
WSGI_APPLICATION = "scancodeio.wsgi.application"
110
111
-SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
+SECURE_PROXY_SSL_HEADER = env.tuple(
112
+ "SECURE_PROXY_SSL_HEADER", default=("HTTP_X_FORWARDED_PROTO", "https")
113
+)
114
115
# Database
116
0 commit comments