taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

bank.taler-nginx.conf (664B)


      1 server {
      2   listen 80;
      3   listen [::]:80;
      4 
      5   server_name bank.${DOMAIN_NAME};
      6 
      7   access_log /var/log/nginx/libeufin-sandbox.log;
      8   error_log /var/log/nginx/libeufin-sandbox.err;
      9 
     10   # Bigger than default timeout to support long polling  
     11   proxy_read_timeout 6500s;
     12   keepalive_requests 1000000;
     13   keepalive_timeout 6500s;
     14 
     15   # TODO should we proxy SPA with nginx for perf and fallback to bank server on 404 ?
     16   location / {
     17     proxy_pass http://localhost:${BANK_PORT};
     18     #Fixes withdrawal http request
     19     proxy_set_header X-Forwarded-Proto "${PROTO}";
     20     proxy_set_header X-Forwarded-Host "bank.${DOMAIN_NAME}";
     21     proxy_set_header X-Forwarded-Prefix /;
     22   }
     23 }