I’ve been working on this all day and at this point, I don’t know what it was that caused the issue. I’m unable to access Home Assistant via my duckdns domain, whether I try remotely or from the home network (that my HA rPi is on). I’ve got the Nginx Proxy Manager add-on installed with default settings:
From the Nginx web UI, I’ve got the proxy host configured with my duckdns domain and websockets enabled. Does the Scheme matter? I have it set to http as shown in the add-on documentation gif.
I got the SSL cert successfully working with SSL forced, though I was initially getting errors with the cert refreshing.
In my router (TP-Link Omada OC200) config, I have port 443 external forwarded to 443 internal for my local HA IP:
In configuration.yaml, I have http configured as follows:
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
ip_ban_enabled: True
login_attempts_threshold: 5
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
- 192.168.0.30
When I try to navigate to https://mydomain.duckdns.org:8123 via my home network, or a mobile network via my phone, I get “Unable to connect” in Firefox and “This site can’t be reached” in Chrome with “ERR_CONNECTION_REFUSED” on the home network and “ERR_CONNECTION_TIMED_OUT” on the mobile network. If I try just https://mydomain.duckdns.org without the port, I get “502 Bad Gateway, nginx”.
In the Duck DNS add-on, I have my domain, token, accept_terms: true configured as required.
I have also tried uninstalling and reinstalling the MariaDB add-on.
I found lots of information in this post, but unfortunately none of it has worked for me. I’m not sure what else to try.
Edit: I can access HA locally and externally via the app and https://mydomain.duckdns.org:8123 if I forward port 8123 in my router. But isn’t the point of the reverse proxy to avoid opening ports? I have to admit I’m a bit lost.