summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-03-24 17:03:23 +0300
committereug-vs <eugene@eug-vs.xyz>2022-03-24 17:03:23 +0300
commit827dbbde1c9169b42f5d2cacb7839488bf03081d (patch)
tree13d23118bb220f98112201636f7ab05591f216aa
parent3554787e09ddba4dd129beae1b6619e94554f19f (diff)
downloadinfrastructure-827dbbde1c9169b42f5d2cacb7839488bf03081d.tar.gz
feat: setup auto-renewing certificates
-rw-r--r--website.yaml6
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: |