diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2025-03-05 18:56:25 +0100 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2025-03-05 18:56:25 +0100 |
commit | 2f2c5e2341f894c65d2a07086de26142e7244ecc (patch) | |
tree | 3a2a9166161871a1955390697eae43d909102a2e /jobs/besiktn.ing/besiktn.ing.nomad.hcl | |
parent | c6030a84030945f1800a9fe292298e1388e0e5d3 (diff) | |
download | garm-2f2c5e2341f894c65d2a07086de26142e7244ecc.tar.gz |
update some stuff
Diffstat (limited to 'jobs/besiktn.ing/besiktn.ing.nomad.hcl')
-rw-r--r-- | jobs/besiktn.ing/besiktn.ing.nomad.hcl | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/jobs/besiktn.ing/besiktn.ing.nomad.hcl b/jobs/besiktn.ing/besiktn.ing.nomad.hcl deleted file mode 100644 index ace4d1a..0000000 --- a/jobs/besiktn.ing/besiktn.ing.nomad.hcl +++ /dev/null @@ -1,64 +0,0 @@ -job "besiktn.ing" { - group "web" { - count = 1 - - network { - port "http" { - to = 80 - } - } - - service { - name = "besiktning" - port = "http" - provider = "nomad" - - tags = [ - "traefik.enable=true", - "traefik.http.routers.besiktning.rule=Host(`besiktn.ing`)||Host(`www.besiktn.ing`)", - "traefik.http.routers.besiktning.entrypoints=https", - "traefik.http.routers.besiktning.tls.certresolver=default", - ] - } - - 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/besiktn.ing/index.html") - destination = "local/html/index.html" - } - } - } -} |