mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-03 03:47:38 +03:00
933 B
933 B
sing
Do you hear the people sing?
geosite
go install -v -trimpath -ldflags "-s -w -buildid=" ./cli/geosite
create from v2ray
geosite add v2ray
create cn only dat
geosite add v2ray cn
geoip
wget 'https://github.com/Dreamacro/maxmind-geoip/releases/latest/download/Country.mmdb'
ss-local
go install -v -trimpath -ldflags "-s -w -buildid=" ./cli/ss-local
ss-server
go install -v -trimpath -ldflags "-s -w -buildid=" ./cli/ss-server
ddns
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