aboutsummaryrefslogtreecommitdiff
path: root/nomad/web_static.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'nomad/web_static.hcl')
-rw-r--r--nomad/web_static.hcl17
1 files changed, 13 insertions, 4 deletions
diff --git a/nomad/web_static.hcl b/nomad/web_static.hcl
index 8e0042b..5a3b80f 100644
--- a/nomad/web_static.hcl
+++ b/nomad/web_static.hcl
@@ -11,14 +11,23 @@ job "web_static" {
task "server" {
driver = "docker"
config {
- image = "superboum/amd64_landing:v8"
+ image = "superboum/amd64_webpull_pug:v4"
port_map {
- web_port = 8043
+ web_port = 8080
}
}
+ template {
+ data = <<EOH
+WEBPULL_REPO="https://git.deuxfleurs.fr/Deuxfleurs/site.git"
+WEBPULL_TOKEN="{{ key "secrets/web/home_token" | trimSpace }}"
+EOH
+ destination = "secrets/env"
+ env = true
+ }
+
resources {
- memory = 20
+ memory = 200
network {
port "web_port" {}
}
@@ -29,7 +38,7 @@ job "web_static" {
"webstatic",
"traefik.enable=true",
"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"
+ "traefik.frontend.rule=Host:deuxfleurs.fr,www.deuxfleurs.fr,deuxfleurs.org,www.deuxfleurs.org;PathPrefix:/"
]
port = "web_port"
address_mode = "host"