mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-03 03:47:38 +03:00
Add cloudflare-ddns command
This commit is contained in:
parent
12e645e9d2
commit
14da4a9d2e
10 changed files with 234 additions and 12 deletions
20
README.md
20
README.md
|
@ -26,4 +26,24 @@ wget 'https://github.com/Dreamacro/maxmind-geoip/releases/latest/download/Countr
|
|||
|
||||
```shell
|
||||
go install -v -trimpath -ldflags "-s -w -buildid=" ./cli/ss-local
|
||||
```
|
||||
|
||||
### ddns
|
||||
|
||||
```shell
|
||||
GOBIN=/usr/local/bin/ go install -v -trimpath -ldflags "-s -w -buildid=" ./cli/cloudflare-ddns
|
||||
|
||||
cat > /usr/local/etc/ddns.json <<EOF
|
||||
{
|
||||
"cloudflare_api_key": "",
|
||||
"cloudflare_api_email": "",
|
||||
"domain": "example.com",
|
||||
"over_proxy": false
|
||||
}
|
||||
EOF
|
||||
|
||||
sudo cp ./cli/cloudflare-ddns/ddns.service /etc/systemd/system
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable ddns
|
||||
sudo systemctl start ddns
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue