Skip to content

Commit c5add9f

Browse files
Whyteyfabaff
Whytey
authored andcommitted
Update apache.conf cookbook for websockets (home-assistant#1544)
* Update apache.conf cookbook for websockets Add additional config lines as suggested in home-assistant/core#4726 (comment) and tested to work on my install. * Updated to include websocket config in second example
1 parent 726d97e commit c5add9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/_cookbook/apache_configuration.markdown

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ To be able to access to your home assistant instance by using https://home.examp
3030
ProxyPreserveHost On
3131
ProxyRequests Off
3232
ServerName home.example.org
33+
ProxyPass /api/websocket ws://localhost:8123/api/websocket
34+
ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
3335
ProxyPass / http://localhost:8123/
3436
ProxyPassReverse / http://localhost:8123/
3537
</VirtualHost>
@@ -74,6 +76,8 @@ To access this instance by using https://countryside.example.org add to `/etc/ht
7476
ProxyPreserveHost On
7577
ProxyRequests Off
7678
ServerName countryside.example.org
79+
ProxyPass /api/websocket ws://localhost:8123/api/websocket
80+
ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
7781
ProxyPass / http://localhost:8124/
7882
ProxyPassReverse / http://localhost:8124/
7983
</VirtualHost>

0 commit comments

Comments
 (0)