forked from Deuxfleurs/infrastructure
Upgrade Traefik + Config tweaking
This commit is contained in:
parent
3431927ad5
commit
3a5aa090d5
3 changed files with 8 additions and 8 deletions
|
@ -25,15 +25,15 @@ defaultEntryPoints = ["http", "https"]
|
||||||
entryPoint = "https"
|
entryPoint = "https"
|
||||||
onHostRule = true
|
onHostRule = true
|
||||||
|
|
||||||
[acme.dnsChallenge]
|
# [acme.dnsChallenge]
|
||||||
provider = "cloudflare"
|
# provider = "cloudflare"
|
||||||
delayBeforeCheck = 0
|
# delayBeforeCheck = 0
|
||||||
|
|
||||||
[acme.httpChallenge]
|
[acme.httpChallenge]
|
||||||
entryPoint = "http"
|
entryPoint = "http"
|
||||||
|
|
||||||
[[acme.domains]]
|
#[[acme.domains]]
|
||||||
main = "deuxfleurs.fr"
|
# main = "deuxfleurs.fr"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
entryPoint = "admin"
|
entryPoint = "admin"
|
||||||
|
|
|
@ -7,7 +7,7 @@ job "frontend" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "amd64/traefik:1.7.9"
|
image = "amd64/traefik:1.7.20"
|
||||||
readonly_rootfs = true
|
readonly_rootfs = true
|
||||||
port_map {
|
port_map {
|
||||||
https_port = 443
|
https_port = 443
|
||||||
|
|
|
@ -28,8 +28,8 @@ job "web_static" {
|
||||||
tags = [
|
tags = [
|
||||||
"webstatic",
|
"webstatic",
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
"traefik.frontend.entryPoints=https",
|
"traefik.frontend.entryPoints=https,http",
|
||||||
"traefik.frontend.rule=Host:deuxfleurs.fr,www.deuxfleurs.fr;Path:/,/robots.txt,/landing/arobase.png"
|
"traefik.frontend.rule=Host:deuxfleurs.fr,www.deuxfleurs.fr,deuxfleurs.org,www.deuxfleurs.org;Path:/,/robots.txt,/landing/arobase.png"
|
||||||
]
|
]
|
||||||
port = "web_port"
|
port = "web_port"
|
||||||
address_mode = "host"
|
address_mode = "host"
|
||||||
|
|
Loading…
Reference in a new issue