fix and update

This commit is contained in:
lendry
2026-06-30 14:12:20 +03:00
parent 2a88c87e94
commit 879875508f
7 changed files with 45 additions and 25 deletions

View File

@@ -10,7 +10,7 @@
set -euo pipefail
SCRIPT_VERSION="2.4.1"
SCRIPT_VERSION="2.4.2"
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT_DIR"
@@ -2035,13 +2035,14 @@ nginx_proxy_headers=" proxy_set_header Host \$host;
proxy_set_header X-Forwarded-Proto \$scheme;
proxy_set_header X-Forwarded-Host \$host;
proxy_set_header Authorization \$http_authorization;
proxy_set_header Connection \"close\";
proxy_read_timeout 300s;
proxy_connect_timeout 75s;"
# Встроенный DNS Docker. valid=2s — быстрее подхватывает новый IP после recreate api-gateway.
NGINX_DOCKER_RESOLVER=" resolver 127.0.0.11 ipv6=off valid=2s;
# Встроенный DNS Docker. valid=1s — быстрее подхватывает новый IP после recreate api-gateway.
NGINX_DOCKER_RESOLVER=" resolver 127.0.0.11 ipv6=off valid=1s;
resolver_timeout 3s;"
NGINX_DOCKER_SERVER_DNS=" resolver 127.0.0.11 ipv6=off valid=2s;
NGINX_DOCKER_SERVER_DNS=" resolver 127.0.0.11 ipv6=off valid=1s;
resolver_timeout 3s;"
# Имя nginx-переменной из ключа апстрима (только [A-Za-z0-9_]).