1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

фикс авторизации1

This commit is contained in:
MoonTestUse1
2025-01-03 20:38:16 +06:00
parent 921cc4421f
commit b9fbad1d20
3 changed files with 12 additions and 2 deletions

View File

@@ -5,6 +5,16 @@ server {
root /usr/share/nginx/html;
index index.html;
# Auth proxy
location /auth/ {
proxy_pass http://backend:8000/auth/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
# API proxy
location /api/ {
proxy_pass http://backend:8000/api/;