aboutsummaryrefslogtreecommitdiff
path: root/app/web_static/deploy
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-01-19 13:47:50 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-01-19 13:47:50 +0100
commiteb925049ac4aab369763fbecb0caaec3579977a3 (patch)
tree8e35cf75340cde9949f9ff38de19c90beafd5391 /app/web_static/deploy
parent0be20b22a6aecc52c6f76f3f773cd023e95b76d3 (diff)
downloadinfrastructure-eb925049ac4aab369763fbecb0caaec3579977a3.tar.gz
infrastructure-eb925049ac4aab369763fbecb0caaec3579977a3.zip
Remove web_static
Diffstat (limited to 'app/web_static/deploy')
-rw-r--r--app/web_static/deploy/web_static.hcl62
1 files changed, 0 insertions, 62 deletions
diff --git a/app/web_static/deploy/web_static.hcl b/app/web_static/deploy/web_static.hcl
deleted file mode 100644
index 16c8b35..0000000
--- a/app/web_static/deploy/web_static.hcl
+++ /dev/null
@@ -1,62 +0,0 @@
-job "web_static" {
- datacenters = ["dc1"]
- type = "service"
-
- constraint {
- attribute = "${attr.cpu.arch}"
- value = "amd64"
- }
-
- group "landing" {
- network {
- port "deuxfleurs_port" { to = 8080 }
- }
-
- task "server" {
- driver = "docker"
- config {
- image = "superboum/amd64_webpull_pug:v4"
- ports = [ "deuxfleurs_port" ]
- }
-
- 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 = 200
- }
-
- service {
- tags = [
- "webstatic",
- "traefik.enable=true",
- "traefik.frontend.entryPoints=https,http",
- "traefik.frontend.rule=Host:deuxfleurs.fr,www.deuxfleurs.fr,deuxfleurs.org,www.deuxfleurs.org;PathPrefix:/",
- # ideally we would have a rewrite regex: ^https?://(www\.deuxfleurs\.fr|deuxfleurs\.org|www\.deuxfleurs\.fr)(.*)$
- "traefik.frontend.priority=10"
- ]
- port = "deuxfleurs_port"
- address_mode = "host"
- name = "landing"
- check {
- type = "tcp"
- port = "deuxfleurs_port"
- interval = "60s"
- timeout = "5s"
- check_restart {
- limit = 3
- grace = "90s"
- ignore_warnings = false
- }
- }
- }
- }
- }
-}
-