This commit is contained in:
d3m0k1d
2026-04-05 11:34:25 +03:00
parent 0a2d41d04e
commit 56db916f29
4 changed files with 9 additions and 5 deletions
+2 -4
View File
@@ -9,15 +9,13 @@ server {
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_pass http://backend:8080;
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_cache_bypass $http_upgrade;
}