nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

certbot-request.sh.tmpl (398B)


      1 #!/usr/bin/env sh
      2 # https://eff-certbot.readthedocs.io/en/stable/using.html#re-creating-and-updating-existing-certificates
      3 {{ with nomadVar "nomad/jobs/certbot" }}
      4 {{ range $i, $d := .domains.Value | split "," }}
      5 certbot certonly --standalone -n \
      6  -m {{ with nomadVar "nomad/jobs/certbot" }}{{ .email }}{{ end }} \
      7  --agree-tos --domains {{ $d }} # --force-renewal --staging
      8 {{- end }}
      9 {{- end }}