blob: 30ed62db420142bcd890ac2fd28c472e0bc3b549 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
server {
# NOTE:
# - urgently consider configuring TLS instead
# - maybe keep a forwarder from HTTP to HTTPS
listen 80;
# NOTE:
# - Comment out this line if you have no IPv6
listen [::]:80;
# NOTE:
# - replace with your actual server name
server_name localhost;
access_log /var/log/nginx/merchant.log;
error_log /var/log/nginx/merchant.err;
location /taler-merchant/ {
proxy_pass http://unix:/var/run/taler/merchant-httpd/merchant-http.sock;
proxy_redirect off;
proxy_set_header Host $host;
# NOTE:
# - put your actual DNS name here
proxy_set_header X-Forwarded-Host "localhost";
# NOTE:
# - uncomment the following line if you are using HTTPS
# proxy_set_header X-Forwarded-Proto "https";
}
}
|