From 827dbbde1c9169b42f5d2cacb7839488bf03081d Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 24 Mar 2022 17:03:23 +0300 Subject: feat: setup auto-renewing certificates --- website.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website.yaml b/website.yaml index 818fa81..41e4281 100644 --- a/website.yaml +++ b/website.yaml @@ -26,6 +26,12 @@ become: true shell: "certbot --nginx --non-interactive --agree-tos -m eugene@eug-vs.xyz -d eug-vs.xyz -d www.eug-vs.xyz" + - name: Setup auto-renewing certificates + become: true + shell: | + echo "0 12 * * * /usr/bin/certbot renew --quiet" >> /tmp/crontab + crontab /tmp/crontab + - name: Allow user to write to website location become: true shell: | -- cgit v1.2.3