I would like to put an https access for my home assistant (hassio - 2020.12.1)
I have already an external access with duckdns and nginx installed and working
I can access to my home assistant with http://hassio.local:8123 but the https isn’t working
The problem with that is that I cannot cast media mounted :
Failed to cast media http://192.168.0.34:8123/media/local/test.mp3?authSig=eyJ0eXAiOiJKV1bo from internal_url (http://192.168.0.34:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
I think my solution could be to pass/activate https to my internal access but I don’t manage to do it
You need to forwart port 443 from your router to port 8123 of the machine running HA.
Afterwards it should be available through https, but also internally it will only be reachable through https unless you install a reverse proxy.
http:
#base_url: xxx.duckdns.org
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
use_x_forwarded_for: true # To ensure HA understands that client requests come via reverse proxy
trusted_proxies:
- 172.30.32.0/23 # In Hass.io we need to add the Docker subnet
- 127.0.0.1 # Add the localhost IPv4 address