Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions internal/nginx/templates/nginx.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ http {
# Docker's embedded DNS (127.0.0.11) resolves container names on the
# user-defined bridge network. valid=10s keeps the cache short so a
# recreated container (new IP) is picked up on the next request instead
# of causing 502s until a manual `nginx -s reload`. Only takes effect
# for proxy_pass targets expressed via an nginx variable (see
# service.conf.tmpl LazyResolve) — static `upstream {}` blocks resolve
# once at load time regardless of this directive.
# of causing 502s until a manual `nginx -s reload`. Every proxy_pass in the
# generated site configs goes through an nginx variable
# (`set $up_x ...; proxy_pass $up_x`, see service.conf.tmpl), so this
# resolver governs all of them; static `upstream {}` blocks, which resolve
# once at load time, were removed in #364.
resolver 127.0.0.11 valid=10s ipv6=off;
resolver_timeout 5s;

Expand Down
Loading