Commit 4c43b25

bryfry <bryon@fryer.io>
2024-09-18 17:38:19
README.md
1 parent 8ffb597
Changed files (2)
.gitignore
@@ -0,0 +1,1 @@
+cfdns
README.md
@@ -0,0 +1,30 @@
+# `cfdns`
+
+### Required Environment Variables
+
+```bash
+ CFDNS_ZONE_NAME=""
+ CFDNS_SUBDOMAIN_NAME=""
+ CFDNS_API_TOKEN=""
+```
+
+### Build for arm64 target
+
+```bash
+GOOS=linux GOARCH=arm64 go build .
+```
+
+### systemd unit example
+
+```ini
+[Unit]
+Description=cloudflare dynamic dns
+
+[Service]
+Type=oneshot
+ExecStart=/usr/local/bin/cfdns
+EnvironmentFile=/etc/cfdns/cfdns.conf
+
+[Install]
+WantedBy=multi-user.target
+```