[global]
  checkNewVersion = false
  sendAnonymousUsage = false

[log]
  level = "DEBUG"
  noColor = true

[entryPoints.websecure]
  address = ":4443"
  [entryPoints.websecure.http3]

[api]
  insecure = true

[providers.file]
  filename = "{{ .SelfFilename }}"

## dynamic configuration ##

[http.routers.router1]
  rule = "Host(`site1.www.snitest.com`)"
  service = "service1"
  [http.routers.router1.tls]

[http.routers.router2]
  rule = "Host(`site2.www.snitest.com`)"
  service = "service2"
  [http.routers.router2.tls]

[http.routers.router3]
  rule = "Host(`site3.www.snitest.com`)"
  service = "service3"
  [http.routers.router3.tls]
    options = "mytls"

[http.routers.router4]
  rule = "Host(`site4.www.snitest.com`)"
  service = "service4"
  [http.routers.router4.tls]

[http.routers.router4path]
  rule = "Host(`site4.www.snitest.com`) && PathPrefix(`/foo`)"
  service = "service4"
  [http.routers.router4path.tls]
    options = "mytls"

[http.routers.router5]
  rule = "Host(`site5.www.snitest.com`)"
  service = "service5"
  [http.routers.router5.tls]
    options = "mytls"

[http.routers.router5path]
  rule = "Host(`site5.www.snitest.com`) && PathPrefix(`/bar`)"
  service = "service5"
  [http.routers.router5path.tls]
    options = "mytls"

[http.routers.router6]
  rule = "Host(`site6.www.snitest.com.`)"
  service = "service6"
  [http.routers.router6.tls]
    options = "mytls"

[http.services.service1]
  [[http.services.service1.loadBalancer.servers]]
    url = "http://127.0.0.1:9010"

[http.services.service2]
  [[http.services.service2.loadBalancer.servers]]
    url = "http://127.0.0.1:9020"

[http.services.service3]
  [[http.services.service3.loadBalancer.servers]]
    url = "http://127.0.0.1:9030"

[http.services.service4]
  [[http.services.service4.loadBalancer.servers]]
    url = "http://127.0.0.1:9040"

[http.services.service5]
  [[http.services.service5.loadBalancer.servers]]
    url = "http://127.0.0.1:9050"

[http.services.service6]
  [[http.services.service6.loadBalancer.servers]]
    url = "http://127.0.0.1:9060"

[[tls.certificates]]
  certFile = "fixtures/https/wildcard.www.snitest.com.cert"
  keyFile = "fixtures/https/wildcard.www.snitest.com.key"

[tls.options]
  [tls.options.mytls]
    maxVersion = "VersionTLS13"
