I wanted to enable remote access to my HA instance and I thought Cloudflared might work for this.
As I use docker, I was thinking it would be easiest to just use it.
version: "3.8" services: homeassistant: container_name: homeassistant image: ghcr.io/home-assistant/home-assistant:stable volumes: - /home/xxx/docker/homeassistant/homeassistant_config:/config restart: unless-stopped environment: - TZ=Europe/Stockholm network_mode: host ports: - 8123:8123 version: "3.8" services: cloudflared: image: cloudflare/cloudflared:latest container_name: cloudflared restart: unless-stopped command: tunnel run environment: - TUNNEL_TOKEN=xxx
I modified my configuration.yaml to allow proxy calls:
# Allows proxy traffic from cloudflared http: use_x_forwarded_for: true trusted_proxies: - 127.0.0.1
My cloudflared container successfully connect to clouflare and is shown up as healthy. However, when I access my domain, https://name.fi/, cloud flare says host is having issues:
When I check logs on the cloudflare container, it says it cannot connect:
Anyone done the same? Any suggestions?
I followed these videos: