summaryrefslogtreecommitdiff
path: root/regional-currency/nginx-conf/backend.taler-nginx.conf
blob: ea267df5579f5dba5bf702d1f90b28d82831c800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
server {

  listen 80;
  listen [::]:80;

  server_name backend.${DOMAIN_NAME};

  # Bigger than default timeout to support long polling  
  proxy_read_timeout 6500s;
  keepalive_requests 1000000;
  keepalive_timeout 6500s;

  location / {
    proxy_pass http://unix:/var/run/taler/merchant-httpd/merchant-http.sock;
    proxy_set_header X-Forwarded-Proto "${PROTO}";
    proxy_set_header X-Forwarded-Host "backend.${DOMAIN_NAME}";
    proxy_set_header X-Forwarded-Prefix /;
  }
}