summaryrefslogtreecommitdiff
path: root/debian/etc/nginx/sites-available/taler-merchant
blob: 8de78a88395add20b930a5613a1fa28a1218b418 (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
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;

    location / {
         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 "example.com";

         # NOTE:
         # - uncomment the following line if you are using HTTPS
         # proxy_set_header X-Forwarded-Proto "https";
    }

}