aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-10-06 13:18:33 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-10-06 13:18:33 +0300
commit29eb2e6cc469d9534c2586e98b782f1879bd8c76 (patch)
treeef2d0bd53087b04bc395dd96d7f6da9bfe69b470 /templates
parent0bf8f1d7f9e477b2de52ab1e7aea000eff8666fe (diff)
Refactor, add certbot to cron
Diffstat (limited to 'templates')
-rw-r--r--templates/ingress/etc_crontab.j210
-rw-r--r--templates/ingress/usr_local_etc_nginx_nginx.conf.j2 (renamed from templates/usr_local_etc_nginx_nginx.conf.j2)0
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/ingress/etc_crontab.j2 b/templates/ingress/etc_crontab.j2
new file mode 100644
index 0000000..7308565
--- /dev/null
+++ b/templates/ingress/etc_crontab.j2
@@ -0,0 +1,10 @@
+# /etc/crontab - root's crontab for FreeBSD
+#
+#
+SHELL=/bin/sh
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
+#
+#minute hour mday month wday who command
+
+# Update LetsEncrypt certificates every day at 2:00 AM
+0 2 * * * root certbot certonly --nginx -n -m jan@jantuomi.fi --agree-tos -d {{ items }}
diff --git a/templates/usr_local_etc_nginx_nginx.conf.j2 b/templates/ingress/usr_local_etc_nginx_nginx.conf.j2
index cee7878..cee7878 100644
--- a/templates/usr_local_etc_nginx_nginx.conf.j2
+++ b/templates/ingress/usr_local_etc_nginx_nginx.conf.j2