This commit is contained in:
2025-12-12 06:05:56 +05:00
parent d5787d3972
commit e6d04f986f
5 changed files with 103 additions and 0 deletions

30
.build/dev/nginx.conf Normal file
View File

@@ -0,0 +1,30 @@
server {
listen 80;
server_name _;
access_log /dev/stdout;
error_log /dev/stdout info;
location /api/ {
proxy_pass http://backend:8000/api/;
}
location /ws/ {
proxy_pass http://backend:8000/ws/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location / {
# In development, proxy to Vite dev server
proxy_pass http://frontend:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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;
}
}