You are not logged in.

#1 2017-09-18 10:14:57

xer01ne
Member
Registered: 2011-02-28
Posts: 46

WebSockets question

I am trying to set up Home Assistant on my arch linux system and one of the requirements is to have websockets (wstunnel) installed and working.  I can't find any good documentation on getting websockets to work properly.  The guide for Home assistant https://home-assistant.io/docs/ecosystem/apache/ calls for mod_proxy_wstunnel (which is uncommented in httpd.conf), but I can't seem to find the package that installs this.  Anyone get wstunnel to work properly?  Also, the examples provided reference /api/websockets for the location to use:

<VirtualHost *:443>
  ProxyPreserveHost On
  ProxyRequests Off
  ServerName home.example.org
  ProxyPass /api/websocket ws://localhost:8123/api/websocket
  ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
  ProxyPass / http://localhost:8123/
  ProxyPassReverse / http://localhost:8123/
</VirtualHost>

, but that doesn't exist either.  I did a search on my system for the websockets file, and:

# find / -name websocket                                                                                                                                            
/usr/lib/node_modules/wstunnel/node_modules/websocket                                                                                                                               
/usr/lib/ruby/gems/2.4.0/gems/websocket-extensions-0.1.2/lib/websocket                                                                                                              
/usr/lib/ruby/gems/2.4.0/gems/websocket-driver-0.6.5/lib/websocket

UI don't think any of these work... i've tried them in my virtualhost file, and no results of websocket working.

So far, I can access the site, but can't get past the login.  (from outside of my of my network).  Inside of my network, the website works properly.

Any help would be appreciated, thanks.

Offline

Board footer

Powered by FluxBB