mirror of
https://github.com/containous/traefik.git
synced 2024-12-23 17:34:13 +03:00
4d86668af3
Co-authored-by: Tom Moulard <tom.moulard@traefik.io>
41 lines
800 B
TOML
41 lines
800 B
TOML
[global]
|
|
checkNewVersion = false
|
|
sendAnonymousUsage = false
|
|
|
|
[log]
|
|
level = "DEBUG"
|
|
noColor = true
|
|
|
|
[serversTransport]
|
|
insecureSkipVerify=true
|
|
|
|
[entryPoints]
|
|
[entryPoints.wss]
|
|
address = ":8000"
|
|
|
|
[api]
|
|
insecure = true
|
|
|
|
[providers.file]
|
|
filename = "{{ .SelfFilename }}"
|
|
|
|
## dynamic configuration ##
|
|
|
|
[http.routers]
|
|
[http.routers.router1]
|
|
service = "service1"
|
|
rule = "Path(`/echo`) || Path(`/ws`)"
|
|
[http.routers.router1.tls]
|
|
|
|
[http.services]
|
|
[http.services.service1]
|
|
[http.services.service1.loadBalancer]
|
|
passHostHeader = true
|
|
[[http.services.service1.loadBalancer.servers]]
|
|
url = "{{ .WebsocketServer }}"
|
|
|
|
[tls.stores]
|
|
[tls.stores.default.defaultCertificate]
|
|
certFile = "resources/tls/local.cert"
|
|
keyFile = "resources/tls/local.key"
|