Hello,
I’ve recently received an update to the IOS app for HA.
I’ve been previously succesfully using it.
Here are the facts:
HA is running natively on a server (not in a docker or chained environment), which also runs an Apache proxy.
- IP address of the server is 192.168.1.3
- there is an DNS address dedicated for home assistant, let’s call it : home.domain.com
- The SSL certificates are installed on apache!
I’ve configured according to the documentation found on the internet, but the mobile app still won’t allow me to set it up since updated to 2.0.
Here’s the configuration:
HA: configuration.yaml section http:
http:
base_url: https://home.domain.com
cors_allowed_origins:
- https://google.com
- https://www.home.domain.com
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- 192.168.1.3
Apache configuration:
<VirtualHost *:443>
ServerName home.domain.com
#sslforfree
SSLCertificateFile /etc/apache2/ssl/sslforfreehomeassistant/certificate.crt
SSLCertificateKeyFile /etc/apache2/ssl/sslforfreehomeassistant/private.key
SSLCertificateChainFile /etc/apache2/ssl/sslforfreehomeassistant/ca_bundle.crt
ProxyPreserveHost On
ProxyRequests off
ProxyPass /api/websocket ws://192.168.1.3:8123/api/websocket
ProxyPassReverse /api/websocket ws://192.168.1.3:8123/api/websocket
..
ProxyPass / http://192.168.1.3:8123/
ProxyPassReverse / http://192.168.1.3:8123/
ProxyPass /config http://192.168.1.3:8123/
ProxyPassReverse /config /config http://192.168.1.3:8123/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://192.168.1.3:8123/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://192.168.1.3:8123/$1 [P,L]
</VirtualHost>
I can succesfully reach lovelace from a browser on the address: https://home.domain.com and the certificate is valid.
Could you help me out what is wrong with the configuration and how to correct it to allow login from IOS app?
Note: using the local ip address it works when on LAN at home in the same network.