taler-deployment

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

commit 56174c4dc7f0b8b3ec02fc165e473fd489ac66b2
parent 24316915c897685319920d3d0ffa527c0ef0b89d
Author: Antoine A <>
Date:   Mon, 25 Mar 2024 17:52:04 +0100

regio: fix nginx config disrupting long polling

Diffstat:
Mregional-currency/nginx-conf/backend.taler-nginx.conf | 5+++++
Mregional-currency/nginx-conf/bank.taler-nginx.conf | 5+++++
Mregional-currency/nginx-conf/exchange.taler-nginx.conf | 6+++++-
3 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/regional-currency/nginx-conf/backend.taler-nginx.conf b/regional-currency/nginx-conf/backend.taler-nginx.conf @@ -5,6 +5,11 @@ server { 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}"; diff --git a/regional-currency/nginx-conf/bank.taler-nginx.conf b/regional-currency/nginx-conf/bank.taler-nginx.conf @@ -7,6 +7,11 @@ server { access_log /var/log/nginx/libeufin-sandbox.log; error_log /var/log/nginx/libeufin-sandbox.err; + # Bigger than default timeout to support long polling + proxy_read_timeout 6500s; + keepalive_requests 1000000; + keepalive_timeout 6500s; + # TODO should we proxy SPA with nginx for perf and fallback to bank server on 404 ? location / { proxy_pass http://localhost:${BANK_PORT}; diff --git a/regional-currency/nginx-conf/exchange.taler-nginx.conf b/regional-currency/nginx-conf/exchange.taler-nginx.conf @@ -5,8 +5,12 @@ server { server_name exchange.${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/exchange-httpd/exchange-http.sock; } - }