my-runtipi/_traefik.dynamic/dynamic/ha.yml

24 lines
633 B
YAML
Raw Normal View History

2024-11-25 04:05:29 +00:00
# http routing section
http:
routers:
# Define a connection between requests and services
"to-ha":
rule: "Host(`ha.lksz.me`)"
entrypoints:
- websecure
# # If the rule matches, applies the middleware
# middlewares:
# - test-user
# If the rule matches, forward to the whoami service (declared below)
service: home-assistant
tls:
certresolver: myresolver
services:
# Define how to reach an existing service on our infrastructure
home-assistant:
loadBalancer:
servers:
- url: "http://ha.lan:8123"
#- address: "ha.lan:8123"