fix(nginx): Remove Basic Auth from /api/admin routes
The /moderation page is already password-protected, so API routes called from that page don't need additional authentication. This fixes 'Unexpected token <' error in deletion log display.
This commit is contained in:
parent
b03cd20b40
commit
0a43fe95ea
|
|
@ -55,11 +55,8 @@ server {
|
|||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# Protected API - Admin API routes (password protected)
|
||||
# Admin API routes (NO password protection - protected by /moderation page access)
|
||||
location /api/admin {
|
||||
auth_basic "Restricted Area - Admin API";
|
||||
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||
|
||||
proxy_pass http://backend-dev:5000/api/admin;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
|
|
|||
|
|
@ -89,11 +89,8 @@ http {
|
|||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# Protected API - Admin API routes (password protected)
|
||||
# Admin API routes (NO password protection - protected by /moderation page access)
|
||||
location /api/admin {
|
||||
auth_basic "Restricted Area - Admin API";
|
||||
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||
|
||||
proxy_pass http://image-uploader-backend:5000/api/admin;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user