blob: 82aaa3062641b313d9ab07f338049586fcfd1efa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
location ~ /taler-merchant/private/ {
if ($http_authorization !~ "(?i)ApiKey %SECURITYTOKEN%") {
return 401;
}
proxy_pass http://unix:/var/lib/taler-merchant/httpd/merchant.sock;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host "example.com";
proxy_set_header X-Forwarded-Proto "https";
}
location /taler-merchant/ {
proxy_pass http://unix:/var/lib/taler-merchant/httpd/merchant.sock;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host "example.com";
proxy_set_header X-Forwarded-Proto "https";
}
|