summaryrefslogtreecommitdiffstats
path: root/roles/nginx/files
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-04-24 20:44:16 +0200
committerTharre <tharre3@gmail.com>2018-05-09 03:21:51 +0200
commitc2e93c2370de9a0948b07e5768c7ac572d299c63 (patch)
tree9c30e6b01b293651cc7d5ce316c844cc0b3e520a /roles/nginx/files
downloadinfrastructure-c2e93c2370de9a0948b07e5768c7ac572d299c63.tar.gz
infrastructure-c2e93c2370de9a0948b07e5768c7ac572d299c63.tar.xz
infrastructure-c2e93c2370de9a0948b07e5768c7ac572d299c63.zip
Initial commit
Diffstat (limited to 'roles/nginx/files')
-rw-r--r--roles/nginx/files/certbot-renewal.service7
-rw-r--r--roles/nginx/files/certbot-renewal.timer10
2 files changed, 17 insertions, 0 deletions
diff --git a/roles/nginx/files/certbot-renewal.service b/roles/nginx/files/certbot-renewal.service
new file mode 100644
index 0000000..0439b2a
--- /dev/null
+++ b/roles/nginx/files/certbot-renewal.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Let's Encrypt renewal
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/certbot renew
+ExecStartPost=/bin/systemctl reload nginx.service
diff --git a/roles/nginx/files/certbot-renewal.timer b/roles/nginx/files/certbot-renewal.timer
new file mode 100644
index 0000000..94c8b8b
--- /dev/null
+++ b/roles/nginx/files/certbot-renewal.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Twice daily renewal of Let's Encrypt's certificates
+
+[Timer]
+OnCalendar=0/12:00:00
+RandomizedDelaySec=1h
+Persistent=true
+
+[Install]
+WantedBy=timers.target