Commit Graph
7 Commits
Author SHA1 Message Date
such-gitea 502d86e02a fix(nginx): refuse the admin API at the public edge
nginx proxied all of /api/ to the internet, including /api/admin, which
returns every merchant's API key and webhook secret behind a single shared
key. The only caller is the admin panel's server actions, so nginx now
answers /api/admin with a 404 and those actions reach the API directly over
the compose network through ADMIN_API_BASE_URL (default http://api:8000),
falling back to API_BASE_URL for non-Docker installs.
2026-11-18 15:38:34 -05:00
jwinterm 3e672f8323 fix(nginx): drop trailing slash on variable ui proxy_pass
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.
2026-07-16 09:02:44 -04:00
jwinterm ac87dea273 fix: preserve public HTTPS checkout links 2026-07-16 08:50:07 -04:00
jwinterm 416cb3416b fix: preserve Greenfield API request paths 2026-07-16 08:17:12 -04:00
jwinterm b34a32c433 fix: nginx — re-resolve upstream hostname via Docker DNS
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.
2026-04-19 16:09:09 -04:00
jwinterm 47cd52686a Remove TLS from nginx — NPM handles TLS on LAN 2026-03-10 11:32:16 -04:00
xmrcheckout 5e0ca00af2 Add docker-compose.yml and friends 2026-01-04 17:57:07 +01:00