diff options
-rw-r--r-- | jobs/certificates.nomad.hcl | 2 | ||||
-rw-r--r-- | nomad.tmpl.hcl | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/jobs/certificates.nomad.hcl b/jobs/certificates.nomad.hcl index 7284deb..c2f4a23 100644 --- a/jobs/certificates.nomad.hcl +++ b/jobs/certificates.nomad.hcl @@ -72,6 +72,7 @@ dns magnusson.space *.magnusson.space dns magnusson.wiki *.magnusson.wiki dns xn--srskildakommandorrelsegruppen-0pc88c.se *.xn--srskildakommandorrelsegruppen-0pc88c.se http dinlugnastund.se www.dinlugnastund.se +CLOUDFLARE_DNS_API_TOKEN=$CTFTAJM_TOKEN dns ctftajm.se *.ctftajm.se EOF destination = "local/certs.sh" } @@ -80,6 +81,7 @@ EOF data = <<EOF {{ with nomadVar "nomad/jobs/certificates" }} CLOUDFLARE_DNS_API_TOKEN={{ .cloudflare_dns_api_token }} +CTFTAJM_TOKEN={{ .cloudflare_dns_api_token_ctftajm }} {{ end }} EOF destination = "local/.env" diff --git a/nomad.tmpl.hcl b/nomad.tmpl.hcl index 7df5416..138eb57 100644 --- a/nomad.tmpl.hcl +++ b/nomad.tmpl.hcl @@ -33,6 +33,10 @@ client { host_volume "syncthing" { path = "/var/local/syncthing" } + + host_volume "ctftajm-postgres" { + path = "/var/local/ctftajm-postgres" + } } acl { |