blob: a57a2e194cbdb62d2503c77479ca522e0fcc3112 (
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/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/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";
}
|