Haproxy template and nginx default timeout settings were modified.

This commit is contained in:
2022-06-24 06:44:13 +00:00
parent 319ef1a381
commit 9431dbe98e
2 changed files with 14 additions and 5 deletions

View File

@@ -1,11 +1,12 @@
global
log stdout format raw local0 debug
defaults
timeout client 300s
timeout server 300s
timeout connect 60s
mode http
option redispatch
option http-server-close
log global
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_next_upstream off;

View File

@@ -176,7 +176,11 @@ location = /$ERROR_PAGE {
proxy_set_header X-Forwarded-Proto "'$scheme'";
proxy_set_header Upgrade "'$http_upgrade;'"
proxy_cookie_path / /;
proxy_set_header Connection "'$http_connection'";"
proxy_set_header Connection "'$http_connection'";
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_next_upstream off;"
if [[ "$DEBUG" != "true" ]]; then
echo " access_log off;"
@@ -229,7 +233,11 @@ location = /$ERROR_PAGE {
proxy_set_header X-Forwarded-Proto "'$scheme'";
proxy_set_header Upgrade "'$http_upgrade;'"
proxy_cookie_path $ALP_LOCAL_PATH $ALP_LOCAL_PATH;
proxy_set_header Connection "'$http_connection'";"
proxy_set_header Connection "'$http_connection'";
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_next_upstream off;"
if [[ "$DEBUG" != "true" ]]; then
echo " access_log off;"