mirror of
https://github.com/containous/traefik.git
synced 2024-12-23 17:34:13 +03:00
63 lines
1.3 KiB
TOML
63 lines
1.3 KiB
TOML
[global]
|
|
checkNewVersion = false
|
|
sendAnonymousUsage = false
|
|
|
|
[log]
|
|
level = "DEBUG"
|
|
|
|
[entryPoints]
|
|
[entryPoints.web]
|
|
address = "{{ .PortHTTP }}"
|
|
[entryPoints.web-secure]
|
|
address = "{{ .PortHTTPS }}"
|
|
|
|
[acme]
|
|
email = "test@traefik.io"
|
|
storage = "/tmp/acme.json"
|
|
# entryPoint = "https"
|
|
acmeLogging = true
|
|
onHostRule = {{ .Acme.OnHostRule }}
|
|
keyType = "{{ .Acme.KeyType }}"
|
|
caServer = "{{ .Acme.CAServer }}"
|
|
|
|
{{if .Acme.HTTPChallenge }}
|
|
[acme.httpChallenge]
|
|
entryPoint = "{{ .Acme.HTTPChallenge.EntryPoint }}"
|
|
{{end}}
|
|
|
|
{{if .Acme.TLSChallenge }}
|
|
[acme.tlsChallenge]
|
|
{{end}}
|
|
|
|
{{range .Acme.Domains}}
|
|
[[acme.domains]]
|
|
main = "{{ .Main }}"
|
|
sans = [{{range .SANs }}
|
|
"{{.}}",
|
|
{{end}}]
|
|
{{end}}
|
|
|
|
[api]
|
|
|
|
[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]
|
|
entryPoints = ["web-secure"]
|
|
rule = "Host(`traefik.acme.wtf`)"
|
|
service = "test"
|
|
[http.routers.test.tls]
|
|
|
|
[tls.stores]
|
|
[tls.stores.default.defaultCertificate]
|
|
certFile = "fixtures/acme/ssl/wildcard.crt"
|
|
keyFile = "fixtures/acme/ssl/wildcard.key"
|