I’m looking for any support regarding enabling Websocket support for my homelab. I’m running pfsense 24.03, and have successfully implemented LetsEncrypt certificates using HAProxy.
Specifically, Open-WebUI has recently rolled an update which requires support for Websockets. I use Open-WebUI to make calls to my local Ollama instance.
My HAProxy configuration is as follows (local only)
Single Wildcard Frontend - *.local.my.domain
Each service I host has an associated ACL and Action. For example:
ACLS
Name | Expression | Value |
---|---|---|
serviceA | Host matches: | serviceA.local.my.domain |
serviceB | Host matches: | serviceB.local.my.domain |
Actions
Action | Parameters | Condition acl names |
---|---|---|
Use Backend | See Below backend: serviceA_backend | serviceA |
Use Backend | See Below backend: serviceB_backend | serviceB |
Multiple Backends
Each service has a unique backend which identifies the internal IP:Port of its host, and has a valid Client certificate.
All other settings are default.
Other examples
There seems to be a fair amount of information available for Nginx configurations, however i’ve struggled to adapt this to HAProxy. Hope that this thread can provide a resource for someone else in the future.
Thanks!
Please let me know if you need any additional information about my configuration or services.