From 1738030bf981d524cf69ddaf1193b53a13b686e8 Mon Sep 17 00:00:00 2001 From: reqwizz Date: Tue, 12 Nov 2024 23:51:47 +0300 Subject: [PATCH] fix proxyconf --- ansible/roles/nginx_proxy/templates/proxy.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/nginx_proxy/templates/proxy.conf.j2 b/ansible/roles/nginx_proxy/templates/proxy.conf.j2 index 0022456..cdf2c24 100644 --- a/ansible/roles/nginx_proxy/templates/proxy.conf.j2 +++ b/ansible/roles/nginx_proxy/templates/proxy.conf.j2 @@ -1,6 +1,6 @@ upstream backend { {% for server in upstream_servers %} - server {{ server }} max_fails=3 fail_timeout=30s; + server {{ server }} max_fails=1 fail_timeout=10s; {% endfor %} } @@ -26,4 +26,4 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } -} \ No newline at end of file +}