37 lines
868 B
YAML
37 lines
868 B
YAML
api:
|
|
dashboard: true
|
|
debug: true
|
|
entryPoints:
|
|
http:
|
|
address: ":80"
|
|
http:
|
|
# middlewares: # uncomment if using CrowdSec - see my video
|
|
# - crowdsec-bouncer@file
|
|
redirections:
|
|
entryPoint:
|
|
to: https
|
|
scheme: https
|
|
https:
|
|
address: ":443"
|
|
# http:
|
|
# middlewares: # uncomment if using CrowdSec - see my video
|
|
# - crowdsec-bouncer@file
|
|
# tcp:
|
|
# address: ":10000"
|
|
# apis:
|
|
# address: ":33073"
|
|
serversTransport:
|
|
insecureSkipVerify: true
|
|
providers:
|
|
docker:
|
|
endpoint: "unix:///var/run/docker.sock"
|
|
exposedByDefault: false
|
|
file:
|
|
filename: /config.yaml # example provided gives A+ rating https://www.ssllabs.com/ssltest/
|
|
|
|
|
|
log:
|
|
level: "INFO"
|
|
filePath: "/var/log/traefik/traefik.log"
|
|
accessLog:
|
|
filePath: "/var/log/traefik/access.log" |