diff --git a/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md b/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md index ddd7d71..639651b 100644 --- a/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md +++ b/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md @@ -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. diff --git a/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_research_vhost/files/npm_research_vhost.py b/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_research_vhost/files/npm_research_vhost.py index 1a65b0c..b3050dd 100644 --- a/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_research_vhost/files/npm_research_vhost.py +++ b/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_research_vhost/files/npm_research_vhost.py @@ -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", + }, ], }