kin: BATON-005-frontend_dev
This commit is contained in:
parent
fac6a0976d
commit
3e8e83481c
3 changed files with 725 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue