Very kind of you!
As far as I can see, no ssl is activated in Hass. All the ssl-offloading should be handled by Nginx, which is hosted on the same server. Hass and Appdaemon are run in separate venv:s.
Here are the relevant part of my configuration files:
configuration.yaml
http:
server_host: 127.0.0.1
use_x_forwarded_for: true
trusted_proxies: 127.0.0.1
appdaemon.yaml
appdaemon:
plugins:
HASS:
type: hass
ha_url: https://my_hass_url
token: !secret token
With the above configuration the complete system works, though when internet goes down, appdaemon loses itβs connection to hass and therefore stops functioning.
I guess that the setting below should be something else, since appdaemon still connects to Hass via the internet.
ha_url: https://my_hass_url
ha_url should be your local url
so something like:
ha_url: http://192.168.178.x:8123
to make sure that you got a working url, test the url in a browser.
Thank you!
Youβre suggestion was part of the solution. What finally made it all work was a series of alterations.
1. Proxy Pass
According to https://www.home-assistant.io/docs/ecosystem/nginx/ proxy_pass in nginx.conf should be set as.
proxy_pass http://127.0.0.1:8123;
Though, in your example above it was set as.
proxy_pass http://HA_IP:8123;
Setting it as http://HA_IP:8123; worked.
2. Server host
When proxy_pass was set as http://HA_IP:8123, server_host in configuration.yaml had to be set accordingly as.
server_host: HA_IP
that is - not as:
server_host: 127.0.0.1
3. HA Url
Finally, ha_url in appdaemon.yaml was set as.
ha_url: http://HA_IP:8123
Again, thanks so much!
your welcome. now appdaemon will work also when you internet goes down.