diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/simp_le.nix | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/custom/simp_le.nix b/custom/simp_le.nix deleted file mode 100644 index 659adef5..00000000 --- a/custom/simp_le.nix +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | { domains ? [] | ||
2 | , simp_le | ||
3 | , lib | ||
4 | , writeText | ||
5 | }: | ||
6 | |||
7 | let | ||
8 | getcert = domain: '' | ||
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}/bin/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 | ||
17 | ''; | ||
18 | in writeText "certs.sh" (lib.concatMapStringsSep "\n" getcert domains) | ||