From a74c5c827599d08a246fe49eeb79b2e0514857d4 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Tue, 22 Aug 2023 21:14:29 +0200 Subject: Make it possible to request multiple certificates --- jobs/certificates.nomad.hcl | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/jobs/certificates.nomad.hcl b/jobs/certificates.nomad.hcl index 22b0ab6..68d8779 100644 --- a/jobs/certificates.nomad.hcl +++ b/jobs/certificates.nomad.hcl @@ -20,20 +20,26 @@ job "certificates" { } config { - command = "lego" - args = [ - "--accept-tos", - "--path", "/lego", - "--email", "mathias+certs@magnusson.space", - "--dns", "cloudflare", - "-d", "magnusson.space", "-d", "*.magnusson.space", - "-d", "magnusson.wiki", "-d", "*.magnusson.wiki", - "run" - ] + command = "certs.sh" } - artifact { - source = "https://github.com/go-acme/lego/releases/download/v4.13.3/lego_v4.13.3_linux_amd64.tar.gz" + template { + data = <