better sample nginx config

This commit is contained in:
Florian Dold 2021-07-30 15:52:34 +02:00
parent c0d4a35a51
commit 625897d8b3
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -1,7 +1,14 @@
server {
listen 80;
listen [::]:80;
#server_name example.com
location /taler-exchange/ {
proxy_pass http://unix:/run/taler/exchange/exchange-http.sock;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host "example.com";
proxy_set_header X-Forwarded-Proto "https";
#proxy_set_header X-Forwarded-Host "example.com";
#proxy_set_header X-Forwarded-Proto "https";
}
}