nginx 1.27 is a closed mainline branch and is inside the vulnerable range
of CVE-2026-123007, CVE-2026-123633, CVE-2026-123634, CVE-2026-121810 and
CVE-2026-113425. The stack config uses resolver, which CVE-2026-123634
reaches, and alias with try_files. Pin the fixed 1.30.7 stable image by
index digest so a rebuild cannot drift.
With a variable upstream ($ui_upstream, added for docker-DNS re-resolution),
a trailing-slash URI in proxy_pass makes nginx forward '/' to the UI for every
sub-path, so /_next/static/*.css and /i/<invoice> all return the app index HTML
(200 text/html) -> the UI renders unstyled and client routing breaks. Omit the
URI to preserve the full request path, matching the /api/ block.
Mirror of wowcheckout e0c349a. Same bug would bite xmrcheckout after any api container rebuild — nginx caches IP at startup and never re-resolves, so a rebuild that gives the api container a new IP leaves nginx 502'ing until manually restarted. Use 'resolver 127.0.0.11 valid=10s' + variable-based proxy_pass so nginx re-resolves every ~10s via Docker's internal DNS.