From 74f04d975c7f3109691e192fe3b9d3569ebdc1e3 Mon Sep 17 00:00:00 2001 From: reqwizz Date: Sun, 17 Nov 2024 18:51:39 +0300 Subject: [PATCH] fix failpage --- ansible/roles/nginx_proxy/templates/proxy.conf.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/nginx_proxy/templates/proxy.conf.j2 b/ansible/roles/nginx_proxy/templates/proxy.conf.j2 index 1de783b..8aa2af2 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=1 fail_timeout=5s; + server {{ server }} max_fails=1 fail_timeout=10s; {% endfor %} } @@ -12,9 +12,9 @@ server { ssl_certificate /etc/nginx/ssl/{{ ssl_cert_file }}; ssl_certificate_key /etc/nginx/ssl/{{ ssl_key_file }}; - error_page 502 503 504 /custom_50x.html; + error_page 502 503 504 /site_down.html; - location = /custom_50x.html { + location = /site_down.html { root /var/www/errors; internal; } @@ -34,4 +34,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 +}