External connection doesn't work with http

Hi,

I have configured my HA to be available from WAN with my domain name (OVH) and https connection (Let’s Encrypt Module).

ON MY OVH DNS ZONE
I have :

ON MY ROUTER
I have configured port forwarding :

  • external 80 to HA Server 80
  • external 443 to HA Server 8123

ON HA LET’S ENCRYPT MODULE CONFIGURATION :

domains:
  - mydomain.com
  - www.mydomain.com
email: [email protected]
keyfile: privkey.pem
certfile: fullchain.pem
challenge: http
dns: {}

With that, I can access HA Server :

But I can’t access HA Server :

In other words, I have to write https:// before the address to be able to connect to my HA Server ; but I would like to just write www.mydomain.com and it be able to access too.

What’s wrong in my configuration ?

Once you enable https on HA, http is disabled. It’s one or the other, not both.

First thanks for the answer.

Actually, I don’t want to connect to home assistant using http.
But for most https websites, we don’t need to type “https://” before the website’s name to get to it.
When I type “www.google.com” in my browser, I am automatically redirect to https://www.google.com, not http://www.google.com.

What I want is the same behavior : just have to type www.mydomain.com to get to https://www.mydomain.com

See this article:

1 Like

Thanks but I already had this parameter activated and it doesn’t change anything.
I get a “ERRCO’NNECTION_REFUSED” when I type www.mydomain.com without https:// prefix

No problem when typing https://www.mydomain.com

Last resort coming from the 20th century: a browser bookmark :rofl: