I do have a DuckDNS ssl to enter my HA.
Last weeks sometimes DuckDNS is down. At such a moment TTS/mediaplayer is not working anymore, so my doorbell is not functioning for example.
I do have the next TTS setting in my cofiguration.yaml.
i do need an extra base_url, because of ssl
Is there a way to keep TTS/mediaplayer running local even if DuckDNS is down?
tts:
- platform: google_translate
language: 'nl'
base_url: https://myname.duckdns.org
# base_url: https://192.168.2.55:8123 #werkt niet met ssl
The problem is, using the LAN IP won’t work because the certificate won’t match.
The “answer” is to run a proxy server and handle the SSL there. Then you can use http://192.168.2.55:8123 internally, and https://myname.duckdns.org externally.
If you’re running the “Supervised” method (with add-ons) there’s going to be at least one, possibly many, add-ons for that. NGINX is probably the most commonly used one.
and do have the next configuration.yaml:
But I do not get it working.
What am I doing wrong?
#----------------------------------------------------------------
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
#----------------------------------------------------------------
http:
base_url: https://myname.duckdns.org:8123
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
#----------------------------------------------------------------
# Text to speech
#----------------------------------------------------------------
tts:
- platform: google_translate
language: 'nl'
# base_url: https://myname.duckdns.org
base_url: http://192.168.2.55:8123 #werkt niet met ssl