mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-04 04:17:38 +03:00
Update README
This commit is contained in:
parent
b4894e7556
commit
fb8de18b9d
3 changed files with 41 additions and 54 deletions
54
README.md
54
README.md
|
@ -1,55 +1,3 @@
|
|||
# sing
|
||||
|
||||
Do you hear the people sing?
|
||||
|
||||
### geosite
|
||||
|
||||
```shell
|
||||
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
|
||||
|
||||
```shell
|
||||
wget 'https://github.com/Dreamacro/maxmind-geoip/releases/latest/download/Country.mmdb'
|
||||
```
|
||||
|
||||
### ss-local
|
||||
|
||||
```shell
|
||||
go install -v -trimpath -ldflags "-s -w -buildid=" ./cli/ss-local
|
||||
```
|
||||
|
||||
### ss-server
|
||||
|
||||
```shell
|
||||
go install -v -trimpath -ldflags "-s -w -buildid=" ./cli/ss-server
|
||||
```
|
||||
|
||||
### 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
|
||||
```
|
||||
Do you hear the people sing?
|
39
cli/ss-server/README.md
Normal file
39
cli/ss-server/README.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
# ss-server
|
||||
|
||||
## Requirements
|
||||
|
||||
```
|
||||
* Go 1.18
|
||||
```
|
||||
|
||||
## Install
|
||||
|
||||
```shell
|
||||
git clone https://github.com/SagerNet/sing
|
||||
cd sing
|
||||
|
||||
cli/ss-server/install.sh
|
||||
|
||||
sudo systemctl enable ss
|
||||
sudo systemctl start ss
|
||||
```
|
||||
|
||||
## Log
|
||||
|
||||
```shell
|
||||
journalctl -u ss --output cat -f
|
||||
```
|
||||
|
||||
## Update
|
||||
|
||||
```shell
|
||||
sudo systemctl stop ss
|
||||
cli/ss-server/update.sh
|
||||
sudo systemctl start ss
|
||||
```
|
||||
|
||||
## Uninstall
|
||||
|
||||
```shell
|
||||
cli/ss-server/uninstal.sh
|
||||
```
|
|
@ -3,5 +3,5 @@
|
|||
"server_port": 8080,
|
||||
"method": "2022-blake3-aes-128-gcm",
|
||||
"key": "psk",
|
||||
"log_level": "warn"
|
||||
"log_level": "info"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue