Upgrade Traefik + Config tweaking

This commit is contained in:
Quentin 2020-01-14 08:33:58 +01:00
parent 3431927ad5
commit 3a5aa090d5
3 changed files with 8 additions and 8 deletions

View file

@ -25,15 +25,15 @@ defaultEntryPoints = ["http", "https"]
entryPoint = "https"
onHostRule = true
[acme.dnsChallenge]
provider = "cloudflare"
delayBeforeCheck = 0
# [acme.dnsChallenge]
# provider = "cloudflare"
# delayBeforeCheck = 0
[acme.httpChallenge]
entryPoint = "http"
[[acme.domains]]
main = "deuxfleurs.fr"
#[[acme.domains]]
# main = "deuxfleurs.fr"
[api]
entryPoint = "admin"

View file

@ -7,7 +7,7 @@ job "frontend" {
driver = "docker"
config {
image = "amd64/traefik:1.7.9"
image = "amd64/traefik:1.7.20"
readonly_rootfs = true
port_map {
https_port = 443

View file

@ -28,8 +28,8 @@ job "web_static" {
tags = [
"webstatic",
"traefik.enable=true",
"traefik.frontend.entryPoints=https",
"traefik.frontend.rule=Host:deuxfleurs.fr,www.deuxfleurs.fr;Path:/,/robots.txt,/landing/arobase.png"
"traefik.frontend.entryPoints=https,http",
"traefik.frontend.rule=Host:deuxfleurs.fr,www.deuxfleurs.fr,deuxfleurs.org,www.deuxfleurs.org;Path:/,/robots.txt,/landing/arobase.png"
]
port = "web_port"
address_mode = "host"