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.
This commit is contained in:
2026-11-18 15:38:34 -05:00
parent 4fdac75ba3
commit ef357f8db2
5 changed files with 31 additions and 1 deletions
+2
View File
@@ -47,4 +47,6 @@ CONTACT_EMAIL=sales@such.software
# UI
API_BASE_URL=http://api:8000
# Private API address for the admin panel; nginx refuses /api/admin publicly.
ADMIN_API_BASE_URL=http://api:8000
SITE_URL=https://wowcheckout.such.software