Add DDNS service to the Pi

This commit is contained in:
Thomas Kleinendorst 2024-04-12 08:39:41 +02:00
parent 04c8038733
commit 04671f7d31
10 changed files with 96 additions and 12 deletions

View file

@ -0,0 +1,13 @@
[Unit]
Description=Cloudflare DDNS service
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
User=cloudflare_ddns
Group=cloudflare_ddns
ExecStart=/home/cloudflare_ddns/bin/cloudflare_ddns/cloudflare_ddns.sh {{ wireguard_address }}
[Install]
WantedBy=default.target

View file

@ -2,5 +2,4 @@
dns_cloudflare_token = {{ dns_cloudflare_token }}
[log_changes]
# TODO: Update this...
log_path = /home/thomas/repositories/raspberry-pi-iac/ddns_update.log
log_path = /home/cloudflare_ddns/cloudflare_ddns/ddns_update.log