summaryrefslogtreecommitdiff
path: root/jobs/files.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/files.nomad.hcl
parent2248eaced59e6c89d812bd9fcb7285e6576a193b (diff)
downloadgarm-c2d3ec3c2ab124158e039fddfd22d35c704afd9f.tar.gz
Replace nginx with traefik
Diffstat (limited to 'jobs/files.nomad.hcl')
-rw-r--r--jobs/files.nomad.hcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/jobs/files.nomad.hcl b/jobs/files.nomad.hcl
index b5c63d5..28fa3a5 100644
--- a/jobs/files.nomad.hcl
+++ b/jobs/files.nomad.hcl
@@ -18,8 +18,10 @@ job "files" {
provider = "nomad"
tags = [
- "nginx.hostname=files.magnusson.space",
- "nginx.certname=magnusson.space",
+ "traefik.enable=true",
+ "traefik.http.routers.files.rule=Host(`files.magnusson.space`)",
+ "traefik.http.routers.files.entrypoints=https",
+ "traefik.http.routers.files.tls.certresolver=default",
]
}