Remove ddclient in favour of duckdns

This commit is contained in:
Colin Hebert
2023-01-04 07:51:25 +01:00
parent cd704dd118
commit 9765c5fafe
8 changed files with 5 additions and 69 deletions

View File

@@ -1,19 +0,0 @@
daemon=300 # check every 300 seconds
syslog=yes # log update msgs to syslog
pid=/var/run/ddclient/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with
# ssl-library
postscript=/data/postscript_gotify.sh # run script after updating. The
# new IP is added as argument.
use=web
web=googledomains
##
## CloudFlare (www.cloudflare.com)
##
protocol=cloudflare, \
zone=dedicated.contact, \
ttl=1, \
login=token, \
password=$CLOUDFLARE_TOKEN \
$CLOUDFLARE_DOMAIN

View File

@@ -1,5 +0,0 @@
Contains the file `gotify_token`
Loadded in the postscript_gotify.sh to send a notification when a new IP is found
Contains the file `clourflare_token`
Token required to access the DNS API of cloudflare

View File

@@ -1 +0,0 @@
!postscript_gotify.sh

View File

@@ -1,12 +0,0 @@
#!/bin/bash
if [ "$(cat /data/gotify_previous_ip || true)" != "$1" ]; then
echo -n "$1" > /data/gotify_previous_ip
curl -s "${GOTIFY_ADDRESS%/}/message" \
-X POST \
-H "X-Gotify-Key: $GOTIFY_TOKEN" \
-F "title=IP Address updated" \
-F "message=IP address detected as $1" \
-F "priority=5"
fi

View File

@@ -1 +0,0 @@
!fill_template.sh

View File

@@ -1,3 +0,0 @@
#!/bin/bash
apk add --update gettext
envsubst < /config/ddclient.conf.tpl > /ddclient.conf