Skip to content

Commit c09f53d

Browse files
committed
修改说明
1 parent 6592d4f commit c09f53d

File tree

4 files changed

+105
-51
lines changed

4 files changed

+105
-51
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# xray
2+
23
## xray 支持 trojan trojan-go v2ray 相关协议 以后只维护xray
4+
35
* [snell安装](./snell/README.md)
46
* [xray安装](./xray/README.md)
7+
58
## 客户端安装
9+
610
* [clash安装](./clash/README.md)

clash/README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
# clash 配置
22

3-
### clash windows 客户端下载
4-
```
3+
## clash windows 客户端下载
4+
5+
```bash
56
https://github.com/Fndroid/clash_for_windows_pkg/releases
67
# 下载完成双击安装
78
```
9+
810
### 配置文件
911

10-
* [clash 配置文件](./config.yaml)
12+
* [clash 配置文件](./config.yaml)
13+
1114
# windows 配置
15+
1216
![1](./static/1.png)
1317
![2](./static/2.png)
1418
![3](./static/3.png)
1519
![4](./static/4.png)
1620
![5](./static/5.png)
17-
### clash Android 下载地址
18-
```
21+
22+
## clash Android 下载地址
23+
24+
```bash
1925
https://github.com/Kr328/ClashForAndroid/releases
2026
# config.yaml 用QQ 或者微信发送到手机导入就可以使用
2127
```
22-
### 说明:
28+
29+
### 说明
30+
2331
配置支持版本 windows Android 最新版本 就版本可能不支持配置
2432

25-
### 规则:
26-
```
33+
### 规则
34+
35+
```bash
2736
https://github.com/Loyalsoldier/clash-rules
2837
```

snell/README.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
# snell 服务端部署
2-
```
2+
3+
```bash
34
下载地址:
45
cd /usr/local/src
56
https://github.com/surge-networks/snell/releases
7+
68
```
7-
#### 解压 snell
8-
```
9+
10+
## 解压 snell
11+
12+
```bash
913
unzip 下载对应版本名
1014
# 复制文件到上级目录
1115
cp -pdr snell-server ../bin/
1216
```
13-
#### 配置启动文件
14-
```
17+
18+
## 配置启动文件
19+
20+
```bash
1521
### 方便 centos Ubuntu 使用
1622
vim /etc/systemd/system/snell-server.service
1723

@@ -32,8 +38,10 @@ RestartSec=1s
3238
[Install]
3339
WantedBy=multi-user.target
3440
```
41+
3542
### 配置 snell-server
36-
```
43+
44+
```bash
3745
mkdir /etc/snell
3846
vim /etc/snell/snell-server.conf
3947
Generating new config...
@@ -44,12 +52,19 @@ obfs = http # http or tls
4452
obfs-host=www.bing.com
4553
version=3
4654
```
55+
4756
# 启动 snell-server
48-
` systemctl start snell-server
57+
58+
`systemctl start snell-server`
59+
4960
# 设置开机启动
50-
` systemctl enable snell-server
61+
62+
`systemctl enable snell-server`
63+
5164
# 查看启动状态
52-
` systemctl status snell-server
5365

54-
#### 客户端配置
66+
`systemctl status snell-server`
67+
68+
## 客户端配置
69+
5570
* [客户端配置](../clash/README.md)

xray/README.md

Lines changed: 59 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,45 @@
11
# Xray 安装
22

3-
#### 下载 Xray
3+
## 下载 Xray
44

5-
```
5+
```bash
66
mkdir -p /usr/local/xray
77

88
cd /usr/local/xray
99

1010
https://github.com/XTLS/Xray-core/releases
1111

1212
```
13-
#### 解压 Xray
1413

15-
```
14+
## 解压 Xray
15+
16+
```bash
1617
unzip 下载对应版本名
1718

1819
```
19-
#### 配置启动文件
20+
21+
## 配置启动文件
22+
2023
# 目录方式启动
21-
* [xray 启动配置](./xray.service)
2224

23-
#### 配置 xray
25+
* [xray 启动配置](./xray.service)
26+
27+
## 配置 xray
2428

2529
# xray 配置参考
2630

2731
* [xray 配置](./xray)
2832

29-
```
33+
```bash
3034
v2 配置在线生成
3135
https://intmainreturn0.com/v2ray-config-gen/
3236
https://github.com/XTLS/Xray-examples
3337

3438
```
35-
#### 启动 xray
3639

37-
```
40+
## 启动 xray
41+
42+
```bash
3843
# 启动
3944
systemctl start xray
4045
# 设置开机启动
@@ -43,8 +48,10 @@ systemctl enable xray
4348
systemctl status xray
4449

4550
```
46-
#### 配置nginx 使用80 或者443 进行转发
47-
```
51+
52+
## 配置nginx 使用80 或者443 进行转发
53+
54+
```bash
4855
# 使用cloudflare 进行转发 后端可以配置http
4956
http://cloudflare.com/
5057
# 设置 cloudflare 网络选择 WebSocket ssl/tls 修改成灵活
@@ -55,56 +62,61 @@ yum install nginx
5562
# ubuntu
5663
apt install nginx
5764
```
65+
5866
# 安装 免费自动签名工具
5967

60-
```
68+
```bash
6169
curl https://get.acme.sh | sh
6270

6371
mkdir -p /apps/nginx/sslkey/tycng.com
6472

6573
```
74+
6675
# nginx ocsp配置
6776

68-
```
77+
```bash
6978
cd /apps/nginx/sslkey/tycng.com
7079
openssl rand 48 > tlsb_session_ticket.key
7180
openssl dhparam -out dhparam.pem 2048
7281
openssl rand 48 > tls_session_ticket.key
7382
```
7483

75-
# 签发证书
76-
#letsencrypt 签发
84+
# 签发证书
7785

78-
```
86+
# letsencrypt 签发
87+
88+
```bash
7989
acme.sh --issue tycng.com -d *.tycng.com --nginx -k 4096
8090

8191
```
8292

8393
# 复制证书到nginx 使用目录
8494

85-
```
95+
```bash
8696
acme.sh --install-cert -d gio.tycng.com \
8797
--key-file /apps/nginx/sslkey/tycng.com/private.key \
8898
--ca-file /apps/nginx/sslkey/tycng.com/ca.crt \
8999
--cert-file /apps/nginx/sslkey/tycng.com/cert.crt \
90100
--fullchain-file /apps/nginx/sslkey/tycng.com/fullchain.crt
91101

92102
```
103+
93104
ecc 证书申请
94105

95-
```
106+
```bash
96107
acme.sh --issue -d tycng.com -d *.tycng.com --dns dns_dp -k ec-256
97108

98109
```
99110

100111
# 查看证书 ocsp_uri
101112

102-
```
113+
```bash
103114
openssl x509 -in fullchain.crt -noout -ocsp_uri
104115
```
105-
# 复制ECC证书到nginx 使用目录
106116

107-
```
117+
# 复制ECC证书到nginx 使用目录
118+
119+
```bash
108120
acme.sh --install-cert -d tycng.com --ecc \
109121
--key-file /apps/nginx/sslkey/tycng.com/eccprivate.key \
110122
--ca-file /apps/nginx/sslkey/tycng.com/eccca.crt \
@@ -114,23 +126,28 @@ acme.sh --install-cert -d tycng.com --ecc \
114126
-url http://ocsp.int-x3.letsencrypt.org -text -respout eccstapling_ocsp ;nginx -s reload"
115127

116128
```
129+
117130
# zerossl 签发
118131

119-
```
132+
```bash
120133
acme.sh --issue --nginx -d gio.tycng.com -d tycng.com -d ocezs.tycng.com -d trojan.tycng.com -d kms.tycng.com -d dvns.tycng.com -m [email protected] -k 4096
121134
# ECC
122135
acme.sh --issue --nginx -d gio.tycng.com -d tycng.com -d ocezs.tycng.com -d trojan.tycng.com -d kms.tycng.com -d dvns.tycng.com -m [email protected] -k ec-256
123136
```
124-
# 复制证书到nginx 使用目录
125-
```
137+
138+
# 复制证书到nginx 使用目录
139+
140+
```bash
126141
acme.sh --install-cert -d gio.tycng.com \
127142
--key-file /apps/nginx/sslkey/tycng.com/private.key \
128143
--ca-file /apps/nginx/sslkey/tycng.com/ca.crt \
129144
--cert-file /apps/nginx/sslkey/tycng.com/cert.crt \
130145
--fullchain-file /apps/nginx/sslkey/tycng.com/fullchain.crt
131146
```
132-
# 复制ECC证书到nginx 使用目录
133-
```
147+
148+
# 复制ECC证书到nginx 使用目录
149+
150+
```bash
134151
acme.sh --install-cert -d gio.tycng.com \
135152
--ecc --key-file /apps/nginx/sslkey/tycng.com/ecc/private.key \
136153
--ca-file /apps/nginx/sslkey/tycng.com/ecc/ca.crt \
@@ -139,26 +156,34 @@ acme.sh --install-cert -d gio.tycng.com \
139156
--reloadcmd "cd /apps/nginx/sslkey/tycng.com/ecc/;openssl ocsp -CAfile fullchain.crt -issuer ca.crt -cert cert.crt -no_nonce \
140157
-url http://zerossl.ocsp.sectigo.com -text -respout stapling_ocsp ;nginx -s reload"
141158
```
159+
142160
# 启动
143-
```
161+
162+
```bash
144163
systemctl start nginx
145164

146165
```
166+
147167
# 设置开机启动
148-
```
168+
169+
```bash
149170
systemctl enable nginx
150171
```
172+
151173
# 查看启动状态
152-
```
174+
175+
```bash
153176
systemctl status nginx
154177

155178
```
179+
156180
# nginx 配置参考
181+
157182
* [nginx 配置](./nginx)
158183

159184
# 国内跳板nginx配置
160185

161-
```
186+
```nginx
162187
# nginx.conf 配置
163188
underscores_in_headers on;
164189
@@ -190,5 +215,6 @@ upstream grpc {
190215
}
191216
```
192217

193-
#### 客户端配置
194-
* [客户端配置](../clash/README.md)
218+
## 客户端配置
219+
220+
* [客户端配置](../clash/README.md)

0 commit comments

Comments
 (0)