forked from SagerNet/sing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4894e7
commit fb8de18
Showing
3 changed files
with
41 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"server_port": 8080, | ||
"method": "2022-blake3-aes-128-gcm", | ||
"key": "psk", | ||
"log_level": "warn" | ||
"log_level": "info" | ||
} |