Traefik configuration examples
parent
e128d8e975
commit
dc5f5bb023
@ -0,0 +1,33 @@
|
|||||||
|
# This is just boilerplate stuff you probably have in your own config
|
||||||
|
logLevel = "INFO"
|
||||||
|
defaultEntryPoints = ["https","http"]
|
||||||
|
|
||||||
|
[entryPoints]
|
||||||
|
[entryPoints.http]
|
||||||
|
address = ":80"
|
||||||
|
[entryPoints.http.redirect]
|
||||||
|
entryPoint = "https"
|
||||||
|
[entryPoints.https]
|
||||||
|
address = ":443"
|
||||||
|
[entryPoints.https.tls]
|
||||||
|
|
||||||
|
[docker]
|
||||||
|
endpoint = "unix:///var/run/docker.sock"
|
||||||
|
watch = true
|
||||||
|
exposedByDefault = false
|
||||||
|
|
||||||
|
# Make sure we get acme.json saved, and onHostRule enabled
|
||||||
|
[acme]
|
||||||
|
email = "your@mail.tld"
|
||||||
|
storage = "acme.json"
|
||||||
|
entryPoint = "https"
|
||||||
|
onHostRule = true
|
||||||
|
|
||||||
|
[acme.httpChallenge]
|
||||||
|
entryPoint = "http"
|
||||||
|
|
||||||
|
# This should include all of your mail domains, and main= should be your $TRAEFIK_DOMAIN
|
||||||
|
[[acme.domains]]
|
||||||
|
main = "mail.your.doma.in"
|
||||||
|
sans = ["web.mail.your.doma.in", "smtp.mail.doma.in", "imap.mail.doma.in"]
|
||||||
|
|
Loading…
Reference in New Issue