I have bought the ProxyPass module and is a bit disappointed as it works on some sites but not on others.
For my Home Assistant (hassio) implementation it does not work without manually changing the configuration to accept websockets. The configuration file
I had to add below lines to get Home Assistant working
Is there a way to do this better so the manual configuration persists?
Cheers
Sven
For my Home Assistant (hassio) implementation it does not work without manually changing the configuration to accept websockets. The configuration file
/etc/httpd/conf.d/x_proxypass.conf
is automatically created by the module and hence overwritten whenever the configuration s is changed.I had to add below lines to get Home Assistant working
# Home Assistant WebSockets
ProxyPass /api/websocket ws://192.168.178.10:8123/api/websocket
ProxyPassReverse /api/websocket ws://192.168.178.10:8123/api/websocket
Is there a way to do this better so the manual configuration persists?
Cheers
Sven
In ProxyPass
Share this post:
Accepted Answer
Difficult. Proxy Pass is a third party app and the developer has not maintained it for years. You can set the immutable bit on the file - "chattr +i /etc/httpd/conf.d/x_proxypass.conf" so the file will never change, but you need to remember to unset it when you need to change it. Otherwise have a look at hacking /usr/clearos/apps/proxypass/libraries/ProxyPassProcessor.php to get what you want.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »