Files
2026-08-23 09:06:32 +00:00

19 lines
509 B
Nginx Configuration File

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
resolver 127.0.0.11 valid=10s;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
set $upstream_backend http://backend:3002;
proxy_pass $upstream_backend;
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;
}
}