Post Views: 28
Accessing Home Assistant through Apache, error “Unable to Connect to Home Assistant, Retry” reversed proxy (Opgelost door onderstaand config te plaatsen
ServerAdmin admin@my.domain
ServerName ha.my.domain
SSLProxyEngine On
SSLCertificateFile /var/lib/apache2/conf/cert/fullchain.pem
SSLCertificateKeyFile /var/lib/apache2/conf/cert/privkey.pem
SSLCertificateChainFile /var/lib/apache2/conf/cert/chain.pem
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://ha_server_ip:8123
ProxyPassReverse / http://ha_server_ip:8123
ProxyPass /api/websocket ws://ha_server_ip:8123/api/websocket
ProxyPassReverse /api/websocket ws://ha_server_ip:8123/api/websocket
RewriteEngine on
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://ha_server_ip:8123/$1 [P,l]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://ha_server_ip:8123/$1 [P,l]
Je moet ingelogd zijn om een reactie te plaatsen.