1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

set the correct X-Forwarded-Port header to fix SAML auth

see: https://github.com/ansible/tower/issues/2314
This commit is contained in:
Ryan Petrello 2018-08-07 10:07:06 -04:00
parent 9193125cc1
commit 2d4fbffb91
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777
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