Files
configpolicy/group_vars/home-assistant.yml
Dustin C. Hatch ceeb61cdb0 roles/homeassistant: Proxy ZwaveJS2Mqtt Web UI
ZwaveJS2Mqtt includes a very powerful web-based UI for configuring and
controlling the Z-Wave network.  This functionality is no longer
available within Home Assistant itself, so being able to access the
ZwaveJS2Mqtt UI is crucial to operating the network.

I wanted to make the UI available at */zwave/*, which requires using
*mod_rewrite* to conditionally proxy requests based on the `Connection`
HTTP header, since the UI passes both HTTP and WebSocket requests to the
same paths.  *mod_rewrite* configuration is not inherited from the main
server configuration to virtual hosts, so the
`RewriteRule`/`RewriteCond` directives have to be specified within the
`<VirtualHost>` block.  This means that the Home Assistant proxy
configuration has to be within its own virtual host, and the
Zwavejs2Mqtt configuration has to be there as well.
2021-07-19 15:58:58 -05:00

13 lines
407 B
YAML

samba_interfaces:
- '{{ dch_networks.blue.ipv4_address }}'
mosquitto_port: 8883
mosquitto_certfile: /etc/pki/tls/certs/mosquitto.cer
mosquitto_keyfile: /etc/pki/tls/private/mosquitto.key
mosquitto_allow_anonymous: false
mosquitto_listeners:
- port: 1883
address: ::1
mosquitto_password_file: /etc/mosquitto/passwd
apache_default_ssl_vhost: false
homeassistant_server_name: homeassistant.pyrocufflink.blue