Cert generation

This commit is contained in:
Daniel Ziltener 2019-12-10 10:53:26 +01:00
parent f184f9c838
commit deb7c9bd68

View File

@ -83,13 +83,13 @@
;; ## Certificates ;; ## Certificates
(defn generate-certs! [{:keys [company-name company-suffix] :as datamap}] (defn generate-certs! [{:keys [company-name company-suffix] :as datamap}]
(info (info
(sh/sh (map #(cljstache/render % datamap) (apply sh/sh (map #(cljstache/render % datamap)
["certbot" "certonly" "--nginx" ["certbot" "certonly" "--nginx"
"-d" "staging.{{company-name}}.talent.careers" "-d" "staging.{{company-name}}.talent.careers"
"-d" "{{company-name}}.talent.careers" "-d" "{{company-name}}.talent.careers"
"-d" "talent.{{company-name}}.{{company-suffix}}" "-d" "talent.{{company-name}}.{{company-suffix}}"
"-d" "www.talent.{{company-name}}.{{company-suffix}}" "-d" "www.talent.{{company-name}}.{{company-suffix}}"
"--cert-name" "{{company-name}}"])))) "--cert-name" "{{company-name}}"]))))
;; # DNS configuration ;; # DNS configuration