Hardcode X-Forwarded-Proto to https (always behind Traefik)

This commit is contained in:
Jennie Robinson Faber 2026-03-02 11:22:57 +00:00
parent d56d6afce7
commit ac419d3c62

View file

@ -60,7 +60,7 @@ http {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Accept-Encoding "";
proxy_http_version 1.1;
@ -85,7 +85,7 @@ http {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto https;
# Disable encoding so sub_filter can process the response
proxy_set_header Accept-Encoding "";