Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zanjie1999/cloudflare-api-v4-ddns
cloudflare 一键 ddns 脚本 (大陆可用)
https://github.com/zanjie1999/cloudflare-api-v4-ddns
cloudflare cloudflare-api ddns linux sh
Last synced: 2 days ago
JSON representation
cloudflare 一键 ddns 脚本 (大陆可用)
- Host: GitHub
- URL: https://github.com/zanjie1999/cloudflare-api-v4-ddns
- Owner: zanjie1999
- Created: 2021-04-25T05:54:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-29T03:07:45.000Z (over 1 year ago)
- Last Synced: 2024-04-30T09:03:44.895Z (7 months ago)
- Topics: cloudflare, cloudflare-api, ddns, linux, sh
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 88
- Watchers: 2
- Forks: 48
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cloudflare-api-v4-ddns
cloudflare 一键 ddns 脚本 (大陆可用)
下载`cf-v4-ddns.sh`编辑一下加到crontab里就完事了
```
sudo wget https://raw.githubusercontent.com/zanjie1999/cloudflare-api-v4-ddns/master/cf-v4-ddns.sh -O /usr/local/bin/cf-ddns.sh
sudo chmod +x /usr/local/bin/cf-ddns.sh
sudo nano /usr/local/bin/cf-ddns.sh
```
修改`default config`下的几个配置变量
[其中CFTOKEN填的是API Token,中文叫API令牌,别填了下面的API Key](https://dash.cloudflare.com/profile/api-tokens)
`crontab -e`
在最后加上`*/2 * * * * /usr/local/bin/cf-ddns.sh >/dev/null 2>&1`
如果需要日志就换成这条`*/2 * * * * /usr/local/bin/cf-ddns.sh >> /var/log/cf-ddns.log 2>&1`