Can´t connect using external_url

Hi.

I upgrade to version 0.112.2 in a rasp 3 and I can´t access from outside. i have this config:

homeassistant:
  external_url: https://myURLduckdns.org
  internal_url: http://192.168.1.64:8123

I do it like tis because i can´t see the external and internal URL options under Configuration/General

in the router I have the port 443 forwarded to 8123 and to the ip of my rasp. And I still have this error:

and i also check and I have ok (I think) the router config because the port 443 is open

DuckDNS logs are fine with no errors

what I´m doing wrong?

UPDATE…

I have this new log error

If you’re not using a proxy server for your SSL then your problem is:

  1. You’ve not enabled SSL in HA
  2. You’ve set the internal URL to http and that will never work

Thanks!

But SSL is enable in duckdns config, do i have to enable ssl in config.yaml like the base_url config?

I change the internal URL to https and isn´t working

It’s enabled in the add-on not in Home Assistant

Until you enable it in Home Assistant it’s not enabled in Home Assistant :wink:

Ohh ok.

How can I enable in Home Assistant? I´m are quite lost with this about external URL…

Configure http with the ssl certificate and key. For example:

http:
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

Thanks! now it is working!!

Hi,

I’m also struggling to access HA from external URL.

So far I get the HA login prompt on the ‘external device’ but when I enter my credentials I get a message: ‘Unable to connect to Home Assistant’, Retry

I believe it has to do with the SSL certificates, but correct me if I’m wrong.

From my Synology NAS I downloaded the SSL certificates. The zip had 4 files:
privkey.pem
syno-ca-privkey.pem
syno-ca-cert.pem
cert.pem

I tried to use both (privkey.pem with cert.pem and syno-ca-privkey.pem and syno-ca-cert.pem) individually in the configuration. Copied the files in the SSL folder and performed a ‘Configuration Check’. Check passed successfully but after restart of HA, it’s not accessable at all (internal and external).

I had to remove the lines

homeassistant:
  external_url: https://xxxx.synology.me:8125
  internal_url: 192.168.100.1:8123

and restart HA to have internal access.

Any suggestion to solve my problem is highly appreciated !!!

Once you add the SSL lines you have to use https:// to access HA, whether you’re using the hostname, or the LAN IP.

Thanks Tinkerer, and does anyone knows which .pem files to use from the Synology NAS?