Hello, I am trying to get external access to work on my HA Container installation in Raspbian Pi 4. I am able to access it from the local network but not externally.
I am forwarding ports 80, 443, and 8123 at my router to Pi IP. I am able to reach other services running on the Pi just to confirm the port forwarding is working.
I am currently trying DuckDNS.org and just plain SSL without luck. Also tried disabling SSL, but same result.
GNU nano 5.4 /var/lib/docker/volumes/Home-Assistant/_data/configuration.yaml
# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#Networking!
homeassistant:
external_url: "https://mysubdomain.duckdns.org"
internal_url: "http://mysubdomain.duckdns.org:8123"
# Example configuration.yaml entry
duckdns:
domain: mysubdomain.duckdns.org
access_token: mytoken
http:
server_port: 8123
ssl_certificate: /config/ssl/fullchain.pem
ssl_key: /config/ssl/privkey.pem
Not sure what else you have running but it seems like both your internal and external URLs are wrong.
That’s not right since HA is listening on port 8123 according to your config and you have port 8123 forwarded to 8123. It should be https://mysubdomain.duckdns.org:8123.
That won’t work for the reasons tinkerer said. You specified SSL options in HA so therefore you must always talk to HA using SSL, internal and external.
Since you are also forwarding ports 443 and 80 to the same machine and HA isn’t listening on either of those it seems like you might have a reverse proxy running on the same machine. If so you should remove the ssl certificate and key from HA’s config and let the reverse proxy handle that. Then everything will work fine.
If you don’t have a reverse proxy then your URLs are wrong.