kin: BATON-005-frontend_dev

This commit is contained in:
Gros Frumos 2026-03-20 23:44:58 +02:00
parent e547e1ce09
commit 8607a9f981
3 changed files with 725 additions and 0 deletions

View file

@ -78,6 +78,19 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# Admin API → FastAPI (UI-страница /admin.html раздаётся статикой ниже)
location /admin/users {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 30s;
proxy_send_timeout 30s;
proxy_connect_timeout 5s;
}
# Статика фронтенда (SPA)
location / {
root /opt/baton/frontend;