Hi,
I am currently working with an API for a device in my home. In the documentation of said API says that the public key should be stored in my domain (let’s assume mydomain.com) and it does not accept subfolders (eg. mydomain.com/local) or 301 redirects.
Now:
- I have a tunnel via Cloudflared (homeassistant.mydomain.com) and
- I started a python server in config/www with this command “python3 -m http.server 8080 --bind 0.0.0.0 --directory /config/www &”
I defined a subdomain in the cloudflared addon like this:
external_hostname: homeassistant.mydomain.com
additional_hosts:
- hostname: static.mydomain.com
service: http://localhost:8080
The problem is, when I run curl localhost:8080 from the RPi terminal it serves the folder no problem, the same if I go through the IPaddress:8080.
However, I cannot access the file via static.mydomain.com with any device of my network.
It got me thinking that there is some kind of firewall inside homeassistant.
Anyone got any ideas?
Thank you.