Hi guys
I’ve always had it take forever to come up, but this time it does not want to…
Was updated earlier tonight to newest stack…
opening the observer url comes back with positive screen.
Don’t have a die how to diagnose or what to check/restart.
ye… but still can’t get to web interface, neither can the mac app connect to the unit.
I’m looking at the docker logs for the container running, having some errors around connecting to my plex server etc, but not seeing anything that raises alarms, even the mqtt container is running.
ok, I got back to local access via https://<hostname:8123, but external access via the https://dynu dns hostname:8124 (I use nGinx to reroute host:8124 → container:443) with lets encrypt enabled is not working.
homeassistant:
external_url: "https://<dynadns hostname>.ddnsfree.com:8124"
internal_url: "https://192.168.0.110:8123"
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.0.110 # Add the IP address of the proxy server
- 172.30.33.0/24 # You may also provide the subnet mask
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
I’m then using nGinx home ssl proxy add on to reroute Host (external):8124 → container 443 (as lets encrypt is configured), only way I could get this working, if you have suggestion how to change this, I’m all ears.
# make sure that your dns has a cname set for homeassistant and that your homeassistant container is not using a base url
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name home.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
# enable for ldap auth, fill in ldap details in ldap.conf
#include /config/nginx/ldap.conf;
location / {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /login;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app homeassistant;
set $upstream_port 8123;
set $upstream_proto http;
proxy_pass http://10.0.0.66:8123;
}
location /api/websocket {
resolver 127.0.0.11 valid=30s;
set $upstream_app homeassistant;
set $upstream_port 8123;
set $upstream_proto http;
proxy_pass http://10.0.0.66:8123;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
I still think your host must be 8123 (that is the port of HA), and you should use “https://<dynadns hostname>.ddnsfree.com” and not ```
“https://<dynadns hostname>.ddnsfree.com:8124”
Disabled the nginx ssl proxy add on, configured a port forward on my edge router of any:8124 → 292.168.0.11:443
and
in configuration.yml
homeassistant:
external_url: "https://<dynu dns name>.ddnsfree.com:8124"
internal_url: "https://192.168.0.110:8123"
customize: !include customize.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.0.110 # Add the IP address of the proxy server
- 172.30.33.0/24 # You may also provide the subnet mask
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
it seems all not 100%, with this configuration. I can access the portal using my laptop, as I can tell laptop to accepts the less than secure certificate. remember the certificate is associated with the fqdn, when internal I use a internal IP…
So the iPhones simply refuse to open site due to the discrepancy…
this does include commenting out the ssl_* from http section, would be great if I can tell it to only use ssl for external and non ssl for internal. ?
PS: I did change the internal url to he http://<ip address:8123
Ok… got both worked, but had to go back to some old settings…
commented out the ssl_* from configuration.yaml.
changed internal back to https::8123 and external to https://:8124
configured nginx ssl proxy to forward container host:8124 to container:443
configured edge router to forward any:8124 to container host:8124.