fix: separate admin page and API authentication
CI / backend-and-migrations (push) Canceled after 0s
CI / astro-build (push) Canceled after 0s
CI / compose-e2e (push) Canceled after 0s

This commit is contained in:
ik
2026-09-09 07:29:39 +07:00
parent eb501affb8
commit c6fdc969c2
9 changed files with 61 additions and 12 deletions
+2 -3
View File
@@ -25,9 +25,8 @@
@adminApi path /api/v1/admin/*
handle @adminApi {
basic_auth {
{$ADMIN_BASIC_USER} {$ADMIN_BASIC_PASSWORD_HASH}
}
# FastAPI verifies the Bearer token. Basic Auth here would reject the
# browser's Bearer Authorization header before it reached the API.
reverse_proxy api:8000
}