summaryrefslogtreecommitdiff
path: root/jobs/hövd.ing/hövd.ing.nomad.hcl
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2024-05-11 21:25:49 +0200
committerMathias Magnusson <mathias@magnusson.space>2024-05-11 21:28:46 +0200
commitc2d3ec3c2ab124158e039fddfd22d35c704afd9f (patch)
treee48e6ecbde72556a4973f6d9ad0132acb72ddc6a /jobs/hövd.ing/hövd.ing.nomad.hcl
parent2248eaced59e6c89d812bd9fcb7285e6576a193b (diff)
downloadgarm-c2d3ec3c2ab124158e039fddfd22d35c704afd9f.tar.gz
Replace nginx with traefik
Diffstat (limited to 'jobs/hövd.ing/hövd.ing.nomad.hcl')
-rw-r--r--jobs/hövd.ing/hövd.ing.nomad.hcl62
1 files changed, 0 insertions, 62 deletions
diff --git a/jobs/hövd.ing/hövd.ing.nomad.hcl b/jobs/hövd.ing/hövd.ing.nomad.hcl
deleted file mode 100644
index dd06924..0000000
--- a/jobs/hövd.ing/hövd.ing.nomad.hcl
+++ /dev/null
@@ -1,62 +0,0 @@
-job "hövd.ing" {
- group "web" {
- count = 1
-
- network {
- port "http" {
- to = 80
- }
- }
-
- service {
- name = "hovding"
- port = "http"
- provider = "nomad"
-
- tags = [
- "nginx.hostname=.xn--hvd-sna.ing",
- "nginx.certname=xn--hvd-sna.ing",
- ]
- }
-
- task "web" {
- driver = "docker"
-
- resources {
- cpu = 50
- memory = 20
- }
-
- config {
- image = "nginx:1.25-alpine"
- ports = ["http"]
-
- volumes = [
- "local/config:/etc/nginx/conf.d",
- "local/html:/var/www/html",
- ]
- }
-
- template {
- data = <<EOF
-server {
- listen 80 default_server;
- listen [::]:80 default_server;
- http2 on;
-
- root /var/www/html;
- location / {
- index index.html;
- }
-}
-EOF
- destination = "local/config/website.conf"
- }
-
- template {
- data = file("jobs/hövd.ing/index.html")
- destination = "local/html/index.html"
- }
- }
- }
-}