From bb0e9045a27cd8c533b26afd31343141dfe10059 Mon Sep 17 00:00:00 2001 From: James Hackett Date: Mon, 19 Dec 2022 23:08:57 +0000 Subject: [PATCH] adds ssl to nginx --- jobs/nginx/nginx.hcl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/jobs/nginx/nginx.hcl b/jobs/nginx/nginx.hcl index c04f866..e0f59ce 100644 --- a/jobs/nginx/nginx.hcl +++ b/jobs/nginx/nginx.hcl @@ -29,6 +29,7 @@ job "nginx" { "traefik.enable=true", "traefik.http.routers.nginx-aperture.rule=Host(`aperture.redbrick.dcu.ie`)", "traefik.http.routers.nginx-aperture.entrypoints=web,websecure", + "traefik.http.routers.nginx-aperture.tls.certresolver=lets-encrypt" ] } @@ -44,7 +45,7 @@ job "nginx" { } artifact { - source = "https://raw.githubusercontent.com/redbrick/nomad/master/nginx/index.html" + source = "https://raw.githubusercontent.com/redbrick/nomad/master/jobs/nginx/index.html" } template { @@ -80,6 +81,7 @@ job "nginx" { "traefik.enable=true", "traefik.http.routers.nginx-glados.rule=Host(`glados.redbrick.dcu.ie`)", "traefik.http.routers.nginx-glados.entrypoints=web,websecure", + "traefik.http.routers.nginx-glados.tls.certresolver=lets-encrypt" ] } @@ -99,7 +101,7 @@ job "nginx" { } artifact { - source = "https://raw.githubusercontent.com/redbrick/nomad/master/nginx/glados.html" + source = "https://raw.githubusercontent.com/redbrick/nomad/master/jobs/nginx/glados.html" } template { @@ -135,6 +137,7 @@ job "nginx" { "traefik.enable=true", "traefik.http.routers.nginx-wheatley.rule=Host(`wheatley.redbrick.dcu.ie`)", "traefik.http.routers.nginx-wheatley.entrypoints=web,websecure", + "traefik.http.routers.nginx-wheatley.tls.certresolver=lets-encrypt" ] } @@ -155,7 +158,7 @@ job "nginx" { } artifact { - source = "https://raw.githubusercontent.com/redbrick/nomad/master/nginx/wheatley.html" + source = "https://raw.githubusercontent.com/redbrick/nomad/master/jobs/nginx/wheatley.html" } template { @@ -191,6 +194,7 @@ job "nginx" { "traefik.enable=true", "traefik.http.routers.nginx-chell.rule=Host(`chell.redbrick.dcu.ie`)", "traefik.http.routers.nginx-chell.entrypoints=web,websecure", + "traefik.http.routers.nginx-chell.tls.certresolver=lets-encrypt" ] } @@ -211,7 +215,7 @@ job "nginx" { } artifact { - source = "https://raw.githubusercontent.com/redbrick/nomad/master/nginx/chell.html" + source = "https://raw.githubusercontent.com/redbrick/nomad/master/jobs/nginx/chell.html" } template {