feat: backend proxy

This commit is contained in:
Karishma Shukla
2025-04-26 15:58:00 +05:30
committed by GitHub
parent 84bad0c89d
commit 6b86d35149

View File

@@ -9,8 +9,9 @@ server {
location / { location / {
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
location /api { # Proxy for backend
location ^/(auth|storage|record|workflow|robot|proxy|api-docs)(/|$) {
proxy_pass http://localhost:8080; proxy_pass http://localhost:8080;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;