I can’t seem to get the Cloudflared tunnel to work going to the Home Assistant app. I keep getting a 400 bad request. I noticed there are 2 IP addresses for home assistant, my normal internal range 192.168.100.10:30027 and also what I’m assuming is the docker IP address and port of 172.16.3.3:8123 …I’ve tried everything, setting various versions of those ports and IP addresses on the tunnel, turning on the “Host Network” option for cloudflared hoping that it’s something to do with docker network to docker network, and nothing works. I can get the TrueNAS Scale webUI to work through the Cloudflare tunnel, but that is running on bare metal and my normal internal network range. Does anyone have a tutorial on how to get docker networks to tunnel through to Cloudflare?
EDIT: So it seems I need to edit the configuration.yaml …but I have no idea where this is stored on TrueNAS. I just let it setup the default config locations. Can I go into the shell somehow and enter the docker container to find it? Looks like I need to add this:
http:
use_x_forwarded_for: true
trusted_proxies:
- xxx.xxx.xxx.xxx/24
I guess those xxx should be: 172.16.3.0/24 ? I’ve done this before on my Pi Home Assistant, but I have no idea how to get to the .yaml in a docker container.
EDIT 2: Ok I figured out how to enter the container shell, and the only editor available is “vi” …I used it to edit the HA configuration.yaml …it was 172.16.3.0/24 and it’s now working! I hope this helps someone in the future.