From 0d1a7a8c7dfc8a79329d3364761a6eb0f3a3d8c3 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Tue, 19 Sep 2023 20:12:43 +0200 Subject: Add support for http challenges for tls certificates --- jobs/certificates.nomad.hcl | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'jobs/certificates.nomad.hcl') diff --git a/jobs/certificates.nomad.hcl b/jobs/certificates.nomad.hcl index f5452a3..7284deb 100644 --- a/jobs/certificates.nomad.hcl +++ b/jobs/certificates.nomad.hcl @@ -16,6 +16,20 @@ job "certificates" { source = "ca-certificates" } + network { + port "http" { } + } + + service { + name = "certificates" + port = "http" + provider = "nomad" + + tags = [ + "nginx.hijack_http=.dinlugnastund.se", + ] + } + task "lego" { driver = "exec" @@ -31,6 +45,7 @@ job "certificates" { template { data = <