Add hap_backend_websocket.tpl long-lived/websocket backend template #5

Merged
jknapp merged 1 commits from add-websocket-backend-template into main 2026-06-18 18:57:30 +00:00
Owner

This adds a new HAProxy backend template templates/hap_backend_websocket.tpl, selectable per-domain via the template_override column.

It renders both {name}-backend and {name}-sse-backend with no option http-server-close plus 6h server/tunnel/http-keep-alive timeouts, so persistent WebSocket/streaming connections (e.g. Jitsi /xmpp-websocket, /colibri-ws) aren't cut by the default 10m server timeout / http-server-close behavior.

This was applied live to the running container for jitsi.dnspegasus.net; this PR makes it survive image rebuilds.

Variable names (name, servers, server.server_name/server_address/server_port/server_options) and the resolvers docker_dns init-addr last,libc,none server line match the existing templates/hap_backend.tpl conventions.

This adds a new HAProxy backend template `templates/hap_backend_websocket.tpl`, selectable per-domain via the `template_override` column. It renders both `{name}-backend` and `{name}-sse-backend` with `no option http-server-close` plus 6h server/tunnel/http-keep-alive timeouts, so persistent WebSocket/streaming connections (e.g. Jitsi `/xmpp-websocket`, `/colibri-ws`) aren't cut by the default 10m server timeout / `http-server-close` behavior. This was applied live to the running container for `jitsi.dnspegasus.net`; this PR makes it survive image rebuilds. Variable names (`name`, `servers`, `server.server_name/server_address/server_port/server_options`) and the `resolvers docker_dns init-addr last,libc,none` server line match the existing `templates/hap_backend.tpl` conventions.
jknapp added 1 commit 2026-06-18 18:56:42 +00:00
jknapp merged commit e190ca9f8e into main 2026-06-18 18:57:30 +00:00
jknapp deleted branch add-websocket-backend-template 2026-06-18 18:57:33 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cloud-hosting-platform/haproxy-manager-base#5