Change ingress configuration to add X-Forwarded-Proto to proxied connections
This commit is contained in:
parent
6b64eefe2d
commit
fe5f006451
@ -47,6 +47,7 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_pass {{ server.proxy_pass }};
|
proxy_pass {{ server.proxy_pass }};
|
||||||
}
|
}
|
||||||
{% elif server.proxies is defined %}
|
{% elif server.proxies is defined %}
|
||||||
@ -55,6 +56,7 @@ server {
|
|||||||
location {{ proxy.location }} {
|
location {{ proxy.location }} {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_pass {{ proxy.pass }};
|
proxy_pass {{ proxy.pass }};
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user