M8: WS-Location /ws mit Upgrade-Headern + 3600s Timeouts (NPM custom locations bekommen sie nicht automatisch)
wss://research.ghostnet.selfhost.eu/ws schlug fehl. Verifiziert via NPM-API: locations / ->8085, /api ->8086, /ws ->8086 mit Upgrade/Connection + auth_request. site.yml idempotent changed=0. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -200,3 +200,10 @@ Internet → NPM (CT 103, 443) → auth_request-Subrequest an oauth2-proxy
|
||||
token); nginx-Default-Puffer (4k/8k) reichen nicht. Fix: `proxy_buffer_size
|
||||
32k; proxy_buffers 8 32k; proxy_busy_buffers_size 64k` in `location /oauth2/`
|
||||
(derselbe Befund wie GNMON-000 M6 am mon-Host). Nach Fix idempotent deployt.
|
||||
|
||||
- **Befund 18.11. (wss://…/ws schlägt fehl):** NPM-Custom-Locations bekommen
|
||||
die WebSocket-Upgrade-Header nicht automatisch — `location /ws` braucht
|
||||
`proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";` + lange Timeouts (3600 s) im eigenen
|
||||
advanced_config. Verifiziert via NPM-API: locations `/`→8085, `/api`→8086,
|
||||
`/ws`→8086 (upgrade: true, auth: true), host ws_upgrade=true, cert=22.
|
||||
|
||||
+11
@@ -107,6 +107,17 @@ host_body = {
|
||||
"forward_port": spec["api_port"],
|
||||
"advanced_config": spec["root_location_advanced_config"] + "\nproxy_read_timeout 600s;\nproxy_send_timeout 600s;\n",
|
||||
},
|
||||
{
|
||||
# websocket endpoint of the harness (wss://…/ws), same IAP auth,
|
||||
# long-lived connection: no read timeout
|
||||
"path": "/ws",
|
||||
"forward_scheme": spec["upstream_scheme"],
|
||||
"forward_host": spec["upstream_host"],
|
||||
"forward_port": spec["api_port"],
|
||||
# NPM custom locations do NOT get the websocket upgrade headers —
|
||||
# add them explicitly, otherwise wss://…/ws fails
|
||||
"advanced_config": spec["root_location_advanced_config"] + "\nproxy_http_version 1.1;\nproxy_set_header Upgrade $http_upgrade;\nproxy_set_header Connection \"upgrade\";\nproxy_read_timeout 3600s;\nproxy_send_timeout 3600s;\n",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user