2019-07-19 09:52:04 +00:00
|
|
|
[global]
|
|
|
|
checkNewVersion = false
|
|
|
|
sendAnonymousUsage = false
|
|
|
|
|
|
|
|
[log]
|
|
|
|
level = "DEBUG"
|
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.web]
|
|
|
|
address = "{{ .PortHTTP }}"
|
2020-01-23 15:36:08 +00:00
|
|
|
[entryPoints.websecure]
|
2019-07-19 09:52:04 +00:00
|
|
|
address = "{{ .PortHTTPS }}"
|
|
|
|
|
|
|
|
{{range $name, $resolvers := .Acme }}
|
|
|
|
|
|
|
|
[certificatesResolvers.{{ $name }}.acme]
|
|
|
|
email = "test@traefik.io"
|
|
|
|
storage = "/tmp/acme.json"
|
|
|
|
keyType = "{{ $resolvers.ACME.KeyType }}"
|
|
|
|
caServer = "{{ $resolvers.ACME.CAServer }}"
|
|
|
|
|
|
|
|
{{if $resolvers.ACME.HTTPChallenge }}
|
|
|
|
[certificatesResolvers.{{ $name }}.acme.httpChallenge]
|
|
|
|
entryPoint = "{{ $resolvers.ACME.HTTPChallenge.EntryPoint }}"
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if $resolvers.ACME.TLSChallenge }}
|
|
|
|
[certificatesResolvers.{{ $name }}.acme.tlsChallenge]
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
[api]
|
2019-09-06 13:08:04 +00:00
|
|
|
insecure = true
|
2019-07-19 09:52:04 +00:00
|
|
|
|
|
|
|
[providers.file]
|
|
|
|
filename = "{{ .SelfFilename }}"
|
|
|
|
|
|
|
|
## dynamic configuration ##
|
|
|
|
|
|
|
|
[http.services]
|
|
|
|
[http.services.test.loadBalancer]
|
|
|
|
[[http.services.test.loadBalancer.servers]]
|
|
|
|
url = "http://127.0.0.1:9010"
|
|
|
|
|
|
|
|
[http.routers]
|
|
|
|
[http.routers.test]
|
2020-01-23 15:36:08 +00:00
|
|
|
entryPoints = ["websecure"]
|
2019-07-19 09:52:04 +00:00
|
|
|
rule = "Host(`traefik.acme.wtf`)"
|
|
|
|
service = "test"
|
|
|
|
[http.routers.test.tls]
|
|
|
|
certResolver = "default"
|
|
|
|
|
|
|
|
[http.routers.tchouk]
|
2020-01-23 15:36:08 +00:00
|
|
|
entryPoints = ["websecure"]
|
2019-07-19 09:52:04 +00:00
|
|
|
rule = "Host(`tchouk.acme.wtf`)"
|
|
|
|
service = "test"
|
|
|
|
[http.routers.tchouk.tls]
|
|
|
|
certResolver = "tchouk"
|