bundle/nginx set instead of HTTPS

This commit is contained in:
Sophie Schiller 2021-09-14 20:21:12 +02:00
parent 4214b0a4ee
commit 481c1c85e5
1 changed files with 1 additions and 3 deletions

View File

@ -108,9 +108,7 @@ server {
proxy_set_header Upgrade $http_upgrade;
% endif
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
% if ssl:
proxy_set_header X-Forwarded-Proto HTTPS;
% endif
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host ${options.get('x_forwarded_host', domain)};
% for option, value in options.get('proxy_set_header', {}).items():
proxy_set_header ${option} ${value};