2026-06-26 10:50:24 +02:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
index index.html;
|
2026-06-26 11:01:03 +02:00
|
|
|
|
|
|
|
|
resolver 127.0.0.11 valid=30s;
|
|
|
|
|
|
2026-06-26 10:50:24 +02:00
|
|
|
location / { try_files $uri $uri/ /index.html; }
|
2026-06-26 11:01:03 +02:00
|
|
|
|
|
|
|
|
location /api/ {
|
|
|
|
|
set $backend http://backend:3001;
|
|
|
|
|
proxy_pass $backend;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /ws {
|
|
|
|
|
set $backend http://backend:3001;
|
|
|
|
|
proxy_pass $backend;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
}
|
2026-06-26 10:50:24 +02:00
|
|
|
}
|