add X-Forwarded-Proto

This commit is contained in:
Peter Bieringer 2024-11-17 07:08:52 +01:00
parent 7b0d3ed29d
commit 18e8ab1ccc

View file

@ -3,15 +3,16 @@
### Usual configuration file location: /etc/nginx/default.d/ ### Usual configuration file location: /etc/nginx/default.d/
## Base URI: /radicale/ ## Base URI: /radicale/
#location /radicale/ { location /radicale/ {
# proxy_pass http://localhost:5232/; proxy_pass http://localhost:5232/;
# proxy_set_header X-Script-Name /radicale; proxy_set_header X-Script-Name /radicale;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Host $host;
# proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Port $server_port;
# proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto $scheme;
# proxy_pass_header Authorization; proxy_set_header Host $http_host;
#} proxy_pass_header Authorization;
}
## Base URI: / ## Base URI: /
#location / { #location / {
@ -20,6 +21,7 @@
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Host $host; # proxy_set_header X-Forwarded-Host $host;
# proxy_set_header X-Forwarded-Port $server_port; # proxy_set_header X-Forwarded-Port $server_port;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header Host $http_host; # proxy_set_header Host $http_host;
# proxy_pass_header Authorization; # proxy_pass_header Authorization;
#} #}