Can I serve both HTTP and HTTP on Hassio?

I can’t get TTS (Google or Polly) to play on Squeezeboxes or Google Home devices on my network. TL;DR, if I turn off SSL, it works fine.

My read of the HTTP component is that it should respond to requests on any host if you don’t set server_host. But once I enable the Lets Encrypt addon, Hassio no longer responds to HTTP requests.

Is there a way for me to respond to both HTTP and HTTPS with Hassio? That way, I can set the base_url for TTS to not use HTTPS and everything should work.

the only way to do such a thing is with a proxyserver (like nginx or caddy)

I see many requests for having http local access AND https remote access both.
And the answers point to a more or less complicated solution:

  • Install ngix proxy server
  • Or install a local DNS or DNSmaq server and point your xx.duckdns.org to your local IP
  • Or accept the “Not secure” warning of your browser (which BTW is not possible to do the HA app on IOS)
  • Or don’t use local IP at all !

There is no easy solution and I find this very hard to believe.
To all good developers of HA community : Really ? I mean really ! there is no way to have both http and https on two different ports of the HA server ?
something like :

http:
  base_url: http://hassio.local:8123
  base_url2: https://xx.duckdns.org:38123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

nope it is really not that easy.
and when it was provided that way then the security wouldnt mean shit anymore.
because the server would be reacable with ssl as well as without ssl.

installing a proxyserver is just a good solution in any case.
its like setting a doorman behind your front door.

Exactly my thinking when I spend hours… I create DNS by IPV6 because I have other more important services on my IPv4 port 443… I install letsencrypt, create SSL certificate, lose chromecast functionality, take SSL, I lose integrations . …
It gets worse when I see that more people seem to have the same feeling, as it’s standard on all web servers:
www.google.com/search?q=home+assistant+https+and+http

And I just wanted him to answer:
https://ha.mydomain.com
http://10.1.1.101

After all that, I still love HA.

1 Like