events {} http { server { listen 80; server_name localhost; location / { proxy_pass http://ui:5173; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } location /ws { proxy_pass http://ui:5173; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } location /socket.io/ { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_pass http://socket:8084/socket.io/; } location /api/ { rewrite ^/api/(.*) /$1 break; proxy_pass http://gateway:8084; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } } }