Merge pull request #2773 from ryanpetrello/openshift-saml

set the correct X-Forwarded-Port header to fix SAML auth
This commit is contained in:
Ryan Petrello
2018-08-07 12:26:51 -04:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ http {
uwsgi_read_timeout 120s; uwsgi_read_timeout 120s;
uwsgi_pass uwsgi; uwsgi_pass uwsgi;
include /etc/nginx/uwsgi_params; include /etc/nginx/uwsgi_params;
proxy_set_header X-Forwarded-Port 443;
} }
} }
} }

View File

@@ -108,3 +108,5 @@ CACHES = {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
}, },
} }
USE_X_FORWARDED_PORT = True