From c2d3ec3c2ab124158e039fddfd22d35c704afd9f Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Sat, 11 May 2024 21:25:49 +0200 Subject: Replace nginx with traefik --- jobs/virtual-hosting.nomad.hcl | 255 ----------------------------------------- 1 file changed, 255 deletions(-) delete mode 100644 jobs/virtual-hosting.nomad.hcl (limited to 'jobs/virtual-hosting.nomad.hcl') diff --git a/jobs/virtual-hosting.nomad.hcl b/jobs/virtual-hosting.nomad.hcl deleted file mode 100644 index 5fa1a38..0000000 --- a/jobs/virtual-hosting.nomad.hcl +++ /dev/null @@ -1,255 +0,0 @@ -job "virtual-hosting" { - group "nginx" { - count = 1 - - network { - port "http" { - static = 80 - } - port "https" { - static = 443 - } - } - - volume "certs" { - type = "host" - source = "ca-certificates" - read_only = true - } - - task "nginx" { - driver = "docker" - - resources { - cpu = 50 - memory = 20 - } - - volume_mount { - volume = "certs" - destination = "/var/local/certs" - } - - config { - image = "nginx:1.25-alpine" - ports = ["http", "https"] - - volumes = [ - "local/nginx.conf:/etc/nginx/nginx.conf", - "local/virtual-hosting.conf:/etc/nginx/conf.d/virtual-hosting.conf", - ] - } - - template { - data = <