Remediation Hub (9)
Tune Nginx proxy_read_timeout & Upgrade Headers for ActionCable
Explicit Connection "upgrade" headers, proxy_buffering off, and proxy_read_timeout 3600s stop Nginx from severing idle Chatwoot agent sockets.
Route: /cable | Timeout: proxy_read_timeout 3600s
Why Default Nginx Reverse Proxies Drop Chatwoot /cable
Standard Nginx location / blocks default to HTTP/1.0 upstream calls without Upgrade headers and terminate silent connections after 60 seconds. Adding a dedicated location /cable block (or WebSocket map) preserves persistent ActionCable frames.
Matching Host ulimit and Worker Connections
Raise worker_connections to 4096+ in nginx.conf and ensure worker_rlimit_nofile 65536 matches Docker container ulimits so busy support peaks never hit file descriptor caps.
Measured Thresholds & Configuration
| Nginx Directive | Broken Default | Chatwoot ActionCable Target |
|---|---|---|
| proxy_http_version | 1.0 | 1.1 |
| Upgrade / Connection | Omitted (400/502 on /cable) | $http_upgrade / "upgrade" |
| proxy_read_timeout | 60s | 3600s |