From dc867699f39d701fe73bcdeda78b65d87690d859 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Sat, 2 Mar 2024 15:31:35 +0100 Subject: I don't even know at this point. Fuck lego. I think, i don't even know --- .envrc | 1 + jobs/certificates.nomad.hcl | 27 +++++++++++++-------------- jobs/virtual-hosting.nomad.hcl | 4 +++- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.envrc b/.envrc index fe7c01a..d068517 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,2 @@ dotenv +export NOMAD_CACERT="$(pwd)/nomad-agent-ca.pem" diff --git a/jobs/certificates.nomad.hcl b/jobs/certificates.nomad.hcl index e1cbc51..db7993d 100644 --- a/jobs/certificates.nomad.hcl +++ b/jobs/certificates.nomad.hcl @@ -2,7 +2,7 @@ job "certificates" { type = "batch" periodic { - cron = "@monthly" + crons = ["@monthly"] } group "lego" { @@ -17,7 +17,9 @@ job "certificates" { } network { - port "http" { } + port "http" { + # static = 80 + } } service { @@ -46,26 +48,23 @@ job "certificates" { data = <