fix and update

This commit is contained in:
lendry
2026-06-30 11:00:43 +03:00
parent 7f10b18336
commit c082b087c5
3 changed files with 53 additions and 6 deletions

View File

@@ -1980,12 +1980,11 @@ nginx_proxy_headers=" proxy_set_header Host \$host;
proxy_read_timeout 300s;
proxy_connect_timeout 75s;"
# Встроенный DNS Docker. valid=5s + resolver_timeout — баланс между свежим IP и
# «Server failure» при кратковременном дауне контейнера во время recreate.
NGINX_DOCKER_RESOLVER=" resolver 127.0.0.11 ipv6=off valid=5s;
resolver_timeout 5s;"
NGINX_DOCKER_SERVER_DNS=" resolver 127.0.0.11 ipv6=off valid=5s;
resolver_timeout 5s;"
# Встроенный DNS Docker. valid=2s — быстрее подхватывает новый IP после recreate api-gateway.
NGINX_DOCKER_RESOLVER=" resolver 127.0.0.11 ipv6=off valid=2s;
resolver_timeout 3s;"
NGINX_DOCKER_SERVER_DNS=" resolver 127.0.0.11 ipv6=off valid=2s;
resolver_timeout 3s;"
# Имя nginx-переменной из ключа апстрима (только [A-Za-z0-9_]).
nginx_upstream_var() {