diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-03-24 17:03:23 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-03-24 17:03:23 +0300 |
commit | 827dbbde1c9169b42f5d2cacb7839488bf03081d (patch) | |
tree | 13d23118bb220f98112201636f7ab05591f216aa | |
parent | 3554787e09ddba4dd129beae1b6619e94554f19f (diff) | |
download | infrastructure-827dbbde1c9169b42f5d2cacb7839488bf03081d.tar.gz |
feat: setup auto-renewing certificates
-rw-r--r-- | website.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
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: | |