HassIO and traefik

Yeah I looked at the Caddy addon but I use cloudflare for my dns provider and it seems that you need an plug-in to caddy to be able to use cloudflare. That that addon is not installed with the hassio caddy-addon.
And I really like how simple traefik is to use and manage for me.

Fortunatly I managed to find a solution:
By adding this to my traefik.toml file
[file]

[backends]
  [backends.hassio.servers.server1]
    url = "http://internal.hass.ip:8123"
	
[frontends]
  [frontends.hassio]
  backend = "hassio"
    [frontends.hassio.routes.hassio_1]
    rule = "Host:hassio.domain.name"

I hope this helps someone else looking to use traefik with HassIO.

5 Likes