diff options
author | Antoine A <> | 2024-03-25 17:52:04 +0100 |
---|---|---|
committer | Antoine A <> | 2024-03-25 17:52:04 +0100 |
commit | 56174c4dc7f0b8b3ec02fc165e473fd489ac66b2 (patch) | |
tree | 13ae8b6f01e356836d03bcbea32ce5e1b9f59753 | |
parent | 24316915c897685319920d3d0ffa527c0ef0b89d (diff) | |
download | deployment-56174c4dc7f0b8b3ec02fc165e473fd489ac66b2.tar.gz deployment-56174c4dc7f0b8b3ec02fc165e473fd489ac66b2.tar.bz2 deployment-56174c4dc7f0b8b3ec02fc165e473fd489ac66b2.zip |
regio: fix nginx config disrupting long polling
-rw-r--r-- | regional-currency/nginx-conf/backend.taler-nginx.conf | 5 | ||||
-rw-r--r-- | regional-currency/nginx-conf/bank.taler-nginx.conf | 5 | ||||
-rw-r--r-- | regional-currency/nginx-conf/exchange.taler-nginx.conf | 6 |
3 files changed, 15 insertions, 1 deletions
diff --git a/regional-currency/nginx-conf/backend.taler-nginx.conf b/regional-currency/nginx-conf/backend.taler-nginx.conf index 3e20704..ea267df 100644 --- 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 index 9e2ce5b..1c6a6d3 100644 --- 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 index 0f470a1..b1e9d0a 100644 --- 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; } - } |