Update cf-ddns.env
This commit is contained in:
parent
3126352ce5
commit
d87efd4cad
27
cf-ddns.env
27
cf-ddns.env
@ -1,10 +1,23 @@
|
|||||||
# --- Required ---
|
CF_API_TOKEN="E5U7BDFMaIb5zCd8T07mmAQt6JE0M8Ln-C0cswTx"
|
||||||
CF_API_TOKEN = "E5U7BDFMaIb5zCd8T07mmAQt6JE0M8Ln-C0cswTx"
|
CF_PROXIED=false
|
||||||
|
CF_TTL=1
|
||||||
# --- Optional ---
|
|
||||||
CF_PROXIED = false
|
|
||||||
CF_TTL = 1
|
|
||||||
|
|
||||||
# Steps
|
# Steps
|
||||||
# install -d -m 0755 /etc/cf-ddns /var/lib/cf-ddns
|
# install -d -m 0755 /etc/cf-ddns /var/lib/cf-ddns
|
||||||
# curl
|
# chmod 600 /etc/cf-ddns/cf-ddns.env
|
||||||
|
# chown root:root /etc/cf-ddns/cf-ddns.env
|
||||||
|
|
||||||
|
# curl https://git.abyres.net/public/harvester/raw/branch/main/cf-ddns.sh -o /usr/local/bin/cf-ddns
|
||||||
|
# chown root:root /usr/local/bin/cf-ddns
|
||||||
|
# chmod +x /usr/local/bin/cf-ddns
|
||||||
|
|
||||||
|
# curl https://git.abyres.net/public/harvester/raw/branch/main/cf-ddns.service -o /etc/systemd/system/cf-ddns.service
|
||||||
|
# curl https://git.abyres.net/public/harvester/raw/branch/main/cf-ddns.timer -o /etc/systemd/system/cf-ddns.timer
|
||||||
|
# chown root:root /etc/systemd/system/cf-ddns.*
|
||||||
|
# chmod 644 /etc/systemd/system/cf-ddns.*
|
||||||
|
|
||||||
|
# systemctl daemon-reload
|
||||||
|
# systemctl enable --now cf-ddns.timer
|
||||||
|
# systemctl start cf-ddns.service
|
||||||
|
|
||||||
|
# journalctl -u cf-ddns.service -n 100 --no-pager
|
||||||
Loading…
x
Reference in New Issue
Block a user