aboutsummaryrefslogtreecommitdiffstats
path: root/templates/ingress/etc_crontab.j2
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-10-11 18:33:51 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-10-11 18:33:51 +0300
commit9105c2d8936b0256e5aa3068fbeb7cc440144968 (patch)
tree063407f233bb5e3775075bbd5270f314ec418e55 /templates/ingress/etc_crontab.j2
parentdbfa9c70b0480c209678090bf62f2c72d68f5264 (diff)
Refactor ingress routing
Diffstat (limited to 'templates/ingress/etc_crontab.j2')
-rw-r--r--templates/ingress/etc_crontab.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/ingress/etc_crontab.j2 b/templates/ingress/etc_crontab.j2
index 8fd559e..46d6b93 100644
--- a/templates/ingress/etc_crontab.j2
+++ b/templates/ingress/etc_crontab.j2
@@ -7,8 +7,8 @@ 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 after 2:00 AM
-{% for item in items %}
-{{ loop.index0 }} 2 * * * root certbot certonly --nginx -n -m jan@jantuomi.fi --agree-tos -d {{ item }}
+{% for host in tls_hosts %}
+{{ loop.index0 }} 2 * * * root certbot certonly --nginx -n -m jan@jantuomi.fi --agree-tos -d {{ host }}
{% endfor %}
# Update dynamic DNS (Hetzner)