# http routing section
http:
  routers:
    # Define a connection between requests and services
    home-assistant:
      rule: "Host(`dockge.toronto.avital14.com`)" 
      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://dockge:31014"
        #- address: "ha.lan:8123"
