fix: separate admin page and API authentication
This commit is contained in:
1 parent
eb501affb8
commit
c6fdc969c2
9 files changed
+61
-12
No files matched your search
+2
-3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user