summaryrefslogtreecommitdiff
path: root/custom/simp_le.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/simp_le.nix')
-rw-r--r--custom/simp_le.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/custom/simp_le.nix b/custom/simp_le.nix
index e03e2b2c..a7196618 100644
--- a/custom/simp_le.nix
+++ b/custom/simp_le.nix
@@ -6,6 +6,13 @@
6 6
7let 7let
8 getcert = domain: '' 8 getcert = domain: ''
9 echo ${domain} >> /tmp/domains.test 9 date=$(date -u +'%Y-%m-%d')
10 mkdir -p /etc/ssl/${domain}/$date /srv/www/acme/${domain} || exit 1
11 cd /etc/ssl/${domain}/$date || exit 1
12 simp_le \
13 -f cert.pem -f key.pem -f fullchain.pem -f account_key.json \
14 --email phikeebaogobaegh@141.li \
15 -d ${domain}:/srv/www/acme/${domain} \
16 && ln -fs /etc/ssl/${domain}/$date /etc/ssl/current
10 ''; 17 '';
11in writeText "certs.sh" (lib.concatMapStringsSep "\n" getcert domains) 18in writeText "certs.sh" (lib.concatMapStringsSep "\n" getcert domains)