You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: notification images aren't downloaded in case of certificate mismatch #42
Hi - for my particular deployment I use https with DuckDNS. For some reason my company has put DuckDNS on a blocklist so any URL with DuckDNS in it is being blocked so I planned to use the local IP address instead.
Of course that means that the full URL doesn't match the certificate path so I assume that's why the actual picture isn't showing up for notifications (as it works perfectly well if I use an http source, or an https source with the correct URL.
A workaround might be to just ignore, or add an option to ignore, certificate errors? At least for image URLs.
changed the title [-]Option to ignore certificate errors for the 'image' URL[/-][+]Bug: notification images aren't downloaded in case of certificate mismatch[/+]on Mar 30, 2022
Hey @andystewart999, I was busy adding the ignore certificate errors for images function in HASS.Agent (actually completed it), but afterwards I found out that's not the issue 😅
It's because when you're using duckdns, you can't access HA locally anymore. I've fixed it by using the NGINX Home Assistant SSL proxy addon.
If you set port forwarding in your router, you need to change the destination port from 8123 to 443
You can ofc keep the source port the same, as long as it forwards to 443
You should now be able to access your Home Assistant instance both through both the duckdns url and its local IP, and use the local IP to retrieve notification images.
Activity
LAB02-Admin commentedon Mar 30, 2022
Hey @andystewart999, good point - I'll add the option to ignore image certificate errors in the next release, thanks.
[-]Option to ignore certificate errors for the 'image' URL[/-][+]Bug: notification images aren't downloaded in case of certificate mismatch[/+]andystewart999 commentedon Mar 30, 2022
Thanks very much!
LAB02-Admin commentedon Mar 31, 2022
Hey @andystewart999, I was busy adding the
ignore certificate errors for imagesfunction in HASS.Agent (actually completed it), but afterwards I found out that's not the issue 😅It's because when you're using duckdns, you can't access HA locally anymore. I've fixed it by using the NGINX Home Assistant SSL proxy addon.
Configuration steps:
httpsection ofconfiguration.yamlfor the duckdns addon, change it to the following:8123to443443You should now be able to access your Home Assistant instance both through both the duckdns url and its local IP, and use the local IP to retrieve notification images.
Let me know if you have any issues!
andystewart999 commentedon Apr 1, 2022
OK, I'll give that a whirl. Thanks for the research and effort :-)