mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
fix nginx append slash to respect proxy
This is already fixed in awx-operator.
See a534c856db/roles/installer/templates/configmaps/config.yaml.j2 (L215)
This just makes it so a development environment can also work correctly
behind a proxy
Fixes problem of
GET to https://$PROXY/something/awx/v2/me
rewritten to https://$AWX/something/awx/v2/me/ (which doesn't exist)
instead path is correctly rewritten as https://$PROXY/something/awx/v2/me/
This commit is contained in:
parent
266e31d71a
commit
9aa3d5584a
@ -34,7 +34,7 @@ location {{ (ingress_path + '/websocket').replace('//', '/') }} {
|
||||
|
||||
location {{ ingress_path }} {
|
||||
# Add trailing / if missing
|
||||
rewrite ^(.*[^/])$ $1/ permanent;
|
||||
rewrite ^(.*)$http_host(.*[^/])$ $1$http_host$2/ permanent;
|
||||
uwsgi_read_timeout 120s;
|
||||
uwsgi_pass uwsgi;
|
||||
include /etc/nginx/uwsgi_params;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user