你别说

每一个模式下都有一种特定的解决方案

我记得 他好像改名了

然后 就变成这样了

这里 记录下 这个配置信息

v2ray.conf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"log":{
"loglevel":"debug"
},
"inbounds":[
{
"listen":"127.0.0.1",
"port":7777,
"protocol":"vless",
"settings":{
"clients":[
{
"id":"uuid"
}
],
"decryption":"none"
},
"streamSettings":{
"network":"ws",
"wsSettings":{
"path":"/path"
}
}
}
],
"outbounds":[
{
"tag":"direct",
"protocol":"freedom"
},
{
"tag":"blocked",
"protocol":"blackhole"
}
],
"routing":{
"domainStrategy":"AsIs",
"strategy":"rules",
"rules":[
{
"type":"field",
"ip":[
"geoip:private"
],
"outboundTag":"blocked"
}
]
}
}

nginx.conf

1
2
3
4
5
6
7
8
9
10
location /path {
proxy_redirect off;
proxy_pass http://127.0.0.1:7777;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

至于走 cloudflare 的话

注意一点 他不支持 三级域名

提示 ERR_SSL_VERSION_OR_CIPHER_MISMATCH 的话 就检查下域名吧

参考