nginx-proxy-manager/backend/lib
Tom Winnerl ea4109965f fix(review): count a resolver-only main target as a warning, not healthy
A name that only resolves through /etc/hosts or a resolv.conf search
domain (resolver_mismatch) works for a static upstream only. nginx
resolves a proxy_pass with a variable per request through its own
resolver, which reads neither: the main target of every proxy host
(proxy_pass $server) and a custom location in dynamic mode fail at
request time. The health monitor and the config test still counted such
a target as ok, so the host showed healthy.

The probe is unchanged (POST /upstreams/check still answers ok with code
resolver_mismatch). Only the interpretation is per target:
forResolverTarget() marks a resolver_mismatch as not ok, with a message
that says requests fail, for the main target and the locations saved
(health monitor, from meta.nginx_locations) or rendered (config test,
from the dry run's location states) in dynamic mode. Static locations
and streams stay ok. The frontend shows resolver_mismatch as a yellow
warning whether ok or not, and the host status lists it as "nginx can't
resolve" instead of "not reachable".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:03:56 +01:00
..
access feat(upstreams): discovery, reachability check and health monitor 2026-11-14 09:03:56 +01:00
express feat: test a host's config without saving (POST /api/nginx/<type>/test) 2026-11-14 09:03:56 +01:00
upstream fix(review): count a resolver-only main target as a warning, not healthy 2026-11-14 09:03:56 +01:00
validator Stop non-admins injecting nginx directives through host fields 2026-11-10 08:20:02 +10:00
access.js feat(upstreams): discovery, reachability check and health monitor 2026-11-14 09:03:56 +01:00
certbot.js Fix cypress suite 2026-05-27 07:25:24 +10:00
config.js fix: Restrict JWT key file permissions to 0600 2026-08-24 09:30:22 +00:00
error.js feat(nginx): serialised configure that tests, rolls back and repairs other hosts 2026-11-11 13:47:08 +01:00
helpers.js Convert backend to ESM 2025-10-02 08:10:18 +10:00
host-test.js fix(review): count a resolver-only main target as a warning, not healthy 2026-11-14 09:03:56 +01:00
migrate_template.js Convert backend to ESM 2025-10-02 08:10:18 +10:00
nginx-advanced.js fix(review): tokenize *_by_lua_block bodies as Lua 2026-11-14 09:03:56 +01:00
nginx-blame.js fix(review): reduce a shared-path blame group to the hosts that cause the error 2026-11-13 19:21:55 +01:00
nginx-errors.js fix(review): allow variable forward paths on regex and named locations 2026-11-14 09:03:56 +01:00
nginx-includes.js fix(review): apply rewrite-phase guards of included files to cached assets 2026-11-14 09:03:56 +01:00
nginx-locations.js fix(review): apply rewrite-phase guards of included files to cached assets 2026-11-14 09:03:56 +01:00
nginx-lock.js feat(nginx): serialised configure that tests, rolls back and repairs other hosts 2026-11-11 13:47:08 +01:00
nginx-reload.js fix(review): take the error log baseline before the child baseline of a reload 2026-11-13 19:28:31 +01:00
nginx-tokenize.js fix(review): read unclosed strings in Lua blocks in linear time 2026-11-14 09:03:56 +01:00
nginx-values.js i18n(nginx): translatable host-level config error text 2026-11-12 00:10:05 +01:00
upstream-dns.js feat(nginx): render custom locations on their own, quarantine the broken ones 2026-11-14 09:03:56 +01:00
utils.js Fixes for upgraded debian trixie 2026-05-25 07:37:24 +10:00