Add hap_backend_websocket.tpl long-lived/websocket backend template #5
Reference in New Issue
Block a user
Delete Branch "add-websocket-backend-template"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This adds a new HAProxy backend template
templates/hap_backend_websocket.tpl, selectable per-domain via thetemplate_overridecolumn.It renders both
{name}-backendand{name}-sse-backendwithno option http-server-closeplus 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-closebehavior.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 theresolvers docker_dns init-addr last,libc,noneserver line match the existingtemplates/hap_backend.tplconventions.