Skip to content

Instantly share code, notes, and snippets.

@DubhAd

DubhAd/http.yml Secret

Last active December 29, 2022 19:02
Show Gist options
  • Save DubhAd/d6d95418ef3b57e282bd556007461fba to your computer and use it in GitHub Desktop.
Save DubhAd/d6d95418ef3b57e282bd556007461fba to your computer and use it in GitHub Desktop.
Traefik file provider config file for Home Assistant on a remote host
http:
routers:
homeassistant:
entryPoints:
- "websecure"
rule: "Host(`homeassistant.example.org`) && ( PathPrefix(`/api/webhook`) || PathPrefix(`/api/websocket`) || PathPrefix(`/api/telegram_webhooks`) || PathPrefix(`/api/frigate`) || PathPrefix(`/api/tts_proxy/`) )"
tls:
certResolver: zerossl
domains:
- main: "homeassistant.example.org"
service: homeassistant
services:
homeassistant:
loadBalancer:
servers:
- url: "http://192.168.1.42:8123"
passHostHeader: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment