improve nginx configuration consistency

This commit is contained in:
Christian Grothoff 2023-03-04 23:04:27 +01:00
parent b10d990afd
commit 442002282d
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 20 additions and 6 deletions

View File

@ -1,7 +1,18 @@
location /taler-auditor/ { server {
proxy_pass http://unix:/var/lib/taler-auditor/auditor.sock;
proxy_redirect off; listen 80;
proxy_set_header Host $host; listen [::]:80;
proxy_set_header X-Forwarded-Host "example.com";
proxy_set_header X-Forwarded-Proto "https"; server_name localhost;
access_log /var/log/nginx/auditor.log;
error_log /var/log/nginx/auditor.err;
location /taler-auditor/ {
proxy_pass http://unix:/var/lib/taler-auditor/auditor.sock;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host "localhost";
#proxy_set_header X-Forwarded-Proto "https";
}
} }

View File

@ -4,6 +4,9 @@ server {
server_name localhost; server_name localhost;
access_log /var/log/nginx/exchange.log;
error_log /var/log/nginx/exchange.err;
location /taler-exchange/ { location /taler-exchange/ {
proxy_pass http://unix:/run/taler/exchange-httpd/exchange-http.sock:/; proxy_pass http://unix:/run/taler/exchange-httpd/exchange-http.sock:/;
proxy_redirect off; proxy_redirect off;