Skip to content

Commit

Permalink
Add a uwsgi param to prevent SAML error
Browse files Browse the repository at this point in the history
Add the uwsgi_param 'HTTP_X_FORWARDED_PORT' to nginx configuration,
This prevents the python-saml "invalid_response" error

related issue : ansible#5570 and ansible#1016

Signed-off-by: loitho
  • Loading branch information
loitho committed Dec 31, 2019
1 parent c6dc69c commit 930b468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions installer/roles/kubernetes/templates/configmap.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ data:
include {{ extra_nginx_include }};
{%- endif %}
proxy_set_header X-Forwarded-Port 443;
uwsgi_param HTTP_X_FORWARDED_PORT 443;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions installer/roles/local_docker/templates/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ http {
include {{ extra_nginx_include }};
{%- endif %}
proxy_set_header X-Forwarded-Port 443;
uwsgi_param HTTP_X_FORWARDED_PORT 443;
}
}
}

0 comments on commit 930b468

Please sign in to comment.