summaryrefslogtreecommitdiff
path: root/jobs/transfer-zip.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/transfer-zip.nomad.hcl
parent2248eaced59e6c89d812bd9fcb7285e6576a193b (diff)
downloadgarm-c2d3ec3c2ab124158e039fddfd22d35c704afd9f.tar.gz
Replace nginx with traefik
Diffstat (limited to 'jobs/transfer-zip.nomad.hcl')
-rw-r--r--jobs/transfer-zip.nomad.hcl59
1 files changed, 0 insertions, 59 deletions
diff --git a/jobs/transfer-zip.nomad.hcl b/jobs/transfer-zip.nomad.hcl
deleted file mode 100644
index 0509b3e..0000000
--- a/jobs/transfer-zip.nomad.hcl
+++ /dev/null
@@ -1,59 +0,0 @@
-job "transfer-zip" {
- group "web" {
- network {
- port "http" {
- to = 80
- }
- port "ws" {
- to = 8001
- }
- }
-
- service {
- name = "transfer-zip"
- port = "http"
- provider = "nomad"
-
- tags = [
- "nginx.hostname=.transfer.zip",
- "nginx.certname=transfer.zip",
- ]
- }
-
- task "web-server" {
- driver = "docker"
-
- resources {
- memory = 30
- }
-
- config {
- image = "localhost/transfer.zip-web:49aeb34"
- ports = ["http"]
- command = "sh"
- args = ["/local/start.sh"]
- }
-
- template {
- data = <<EOF
-sed -i "s/signaling-server:8001/$NOMAD_ADDR_ws/" /etc/nginx/conf.d/nginx.conf
-exec run-server.sh
-EOF
- destination = "local/start.sh"
- }
- }
-
- task "signaling-server" {
- driver = "docker"
-
- resources {
- memory = 50
- }
-
- config {
- image = "localhost/transfer.zip-signal:49aeb34"
- ports = ["ws"]
- }
- }
- }
-}