diff options
author | Quentin <quentin@deuxfleurs.fr> | 2019-06-01 16:02:49 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2019-07-11 09:33:07 +0200 |
commit | 61d009f18d5886db8b22ae41e04bb41a4ba2fddb (patch) | |
tree | e44bb326caf3107653c7a48749527cfd77f02cf2 /consul/configuration/traefik | |
download | infrastructure-61d009f18d5886db8b22ae41e04bb41a4ba2fddb.tar.gz infrastructure-61d009f18d5886db8b22ae41e04bb41a4ba2fddb.zip |
Initial commit
Diffstat (limited to 'consul/configuration/traefik')
-rw-r--r-- | consul/configuration/traefik/cloudflare.env.sample | 2 | ||||
-rw-r--r-- | consul/configuration/traefik/traefik.toml.sample | 53 |
2 files changed, 55 insertions, 0 deletions
diff --git a/consul/configuration/traefik/cloudflare.env.sample b/consul/configuration/traefik/cloudflare.env.sample new file mode 100644 index 0000000..072e671 --- /dev/null +++ b/consul/configuration/traefik/cloudflare.env.sample @@ -0,0 +1,2 @@ +CF_API_EMAIL = "<email>" +CF_API_KEY = "<token>" diff --git a/consul/configuration/traefik/traefik.toml.sample b/consul/configuration/traefik/traefik.toml.sample new file mode 100644 index 0000000..fbfc745 --- /dev/null +++ b/consul/configuration/traefik/traefik.toml.sample @@ -0,0 +1,53 @@ +InsecureSkipVerify = true +defaultEntryPoints = ["http", "https"] + +[entryPoints] + [entryPoints.admin] + address = ":8082" + [entryPoints.admin.auth.basic] + users = ["<username>:<hash>"] + + [entryPoints.http] + address = ":80" + [entryPoints.http.redirect] + entryPoint = "https" + + [entryPoints.https] + address = ":443" + compress = true + [entryPoints.https.tls] + +[retry] + +[acme] + email = "quentin@dufour.io" + storage = "traefik/acme/account" + entryPoint = "https" + onHostRule = true + + [acme.dnsChallenge] + provider = "cloudflare" + delayBeforeCheck = 0 + + [acme.httpChallenge] + entryPoint = "http" + +[[acme.domains]] + main = "deuxfleurs.fr" + +[api] + entryPoint = "admin" + dashboard = true + +[consul] + endpoint = "consul.service.2.cluster.deuxfleurs.fr:8500" + watch = true + prefix = "traefik" + +[consulCatalog] + endpoint = "consul.service.2.cluster.deuxfleurs.fr:8500" + prefix = "traefik" + domain = "web.deuxfleurs.fr" + exposedByDefault = false + + |