################################################################
# Global configuration
################################################################
# Enable debug mode
#
# Optional
# Default: false
#
debug = false
# Log level
#
# Optional
# Default: “ERROR”
#
logLevel = “ERROR”
# Entrypoints to be used by frontends that do not specify any entrypoint.
# Each frontend can specify its own entrypoints.
#
# Optional
# Default: [“http”]
#
defaultEntryPoints = [“http”,”https”]
################################################################
# Entrypoints configuration
################################################################
# Entrypoints definition
#
# Optional
# Default:
# 要为一个入口点开启基础认证(basic auth)
# 使用2组用户名/密码: test:test 与 test2:test2
# 密码可以以MD5、SHA1或BCrypt方式加密:你可以使用htpasswd来生成这些用户名密码。
# [entryPoints]
# [entryPoints.http]
# address = “:80”
# [entryPoints.http.auth.basic]
# users = [“test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/”, “test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0”]
#
# 要为一个入口点开启摘要认证(digest auth)
# 使用2组用户名/域/密码: test:traefik:test 与 test2:traefik:test2
# 你可以使用htdigest来生成这些用户名/域/密码
[entryPoints]
[entryPoints.http]
address = “:80”
# [entryPoints.http.redirect]
# entryPoint = “https”
[entryPoints.https]
address = “:443”
[entryPoints.https.tls]
[entryPoints.webentry]
address = “:8090”
[entryPoints.webentry.auth]
[entryPoints.webentry.auth.basic]
users = [“test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/”]
################################################################
# API and dashboard configuration
################################################################
# Enable API and dashboard
[api]
dashboard = true
entrypoint = “webentry”
################################################################
# Ping configuration
################################################################
# Enable ping
[ping]
# Name of the related entry point
#
# Optional
# Default: “traefik”
#
# entryPoint = “traefik”
################################################################
# Docker 后端配置
################################################################
# 使用默认域名。
# 可以通过为容器设置”traefik.domain” label来覆盖。
# 启用Docker后端配置
[docker]
endpoint = “unix:///var/run/docker.sock”
domain = “yimo.link”
watch = true
exposedByDefault = false
usebindportip = true
swarmMode = false
network = “me_gateway”
[acme]
email = “yimo666666@qq.com”
storage = “acme.json”
entryPoint = “https”
onDemand = false
onHostRule = true
[acme.httpChallenge]
entryPoint=”http”