From 68b2fba24c54696ed19d06f58d4483dbd6779769 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 4 Mar 2022 01:53:31 +0100 Subject: [PATCH] Update nginx config --- nginx/nginx.conf | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index a3931eb..5dd81ce 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -21,6 +21,8 @@ http { include /etc/nginx/mime.types; include /etc/nginx/proxy.conf; + proxy_next_upstream_timeout 10s; + # error_map has to be at http level include /etc/nginx/error_map.conf; # Custom MIME definition @@ -29,8 +31,8 @@ http { } # keepalive settings #keepalive_requests 10; - keepalive_timeout 5s; - #http2_idle_timeout 10s; # replaced by keepalive_timeout in 1.19.7 + keepalive_timeout 10s; + http2_idle_timeout 20s; # replaced by keepalive_timeout in 1.19.7 access_log off; #error_log /etc/nginx/logs/error.log warn; @@ -62,8 +64,14 @@ http { server 10.0.0.9:4441 max_fails=3 fail_timeout=60s; server 10.0.0.9:4442 max_fails=3 fail_timeout=60s; - server 10.0.0.10:4441 max_fails=3 fail_timeout=60s; - server 10.0.0.10:4442 max_fails=3 fail_timeout=60s; + server 10.0.0.12:4441 max_fails=3 fail_timeout=60s; + server 10.0.0.12:4442 max_fails=3 fail_timeout=60s; + + server 10.0.0.10:4441 max_fails=3 fail_timeout=60s; + server 10.0.0.10:4442 max_fails=3 fail_timeout=60s; + + server 10.0.0.13:4441 max_fails=3 fail_timeout=60s; + server 10.0.0.13:4442 max_fails=3 fail_timeout=60s; #server 134.209.69.251:80 backup;