2026-02-01 13:24:03 +00:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
2026-02-01 18:46:35 +00:00
|
|
|
listen 100.91.10.103:80;
|
2026-02-01 13:24:03 +00:00
|
|
|
server_name _;
|
|
|
|
|
|
|
|
|
|
root /opt/archipelago/web-ui;
|
|
|
|
|
index index.html;
|
|
|
|
|
|
|
|
|
|
# Serve static files (Vue.js SPA)
|
|
|
|
|
location / {
|
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Proxy API requests to backend
|
|
|
|
|
location /rpc/ {
|
|
|
|
|
proxy_pass http://127.0.0.1:5678;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2026-02-01 18:46:35 +00:00
|
|
|
|
|
|
|
|
# Increase timeout for long-running operations (e.g., Docker image pulls)
|
|
|
|
|
proxy_connect_timeout 300s;
|
|
|
|
|
proxy_send_timeout 300s;
|
|
|
|
|
proxy_read_timeout 300s;
|
2026-02-01 13:24:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Proxy WebSocket
|
|
|
|
|
location /ws {
|
|
|
|
|
proxy_pass http://127.0.0.1:5678;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
proxy_set_header Host $host;
|
2026-02-01 18:46:35 +00:00
|
|
|
|
|
|
|
|
# WebSocket timeout
|
|
|
|
|
proxy_read_timeout 86400s;
|
2026-02-01 13:24:03 +00:00
|
|
|
}
|
|
|
|
|
}
|