Change ingress configuration to add X-Forwarded-Proto to proxied connections

This commit is contained in:
Salt 2022-09-03 17:27:35 -05:00
parent 6b64eefe2d
commit fe5f006451

View File

@ -47,6 +47,7 @@ server {
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass {{ server.proxy_pass }};
}
{% elif server.proxies is defined %}
@ -55,6 +56,7 @@ server {
location {{ proxy.location }} {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass {{ proxy.pass }};
}
{% endfor %}