Skip to content

Commit c175399

Browse files
vxtlsxiaokangwang
authored andcommitted
Update vmess.md
1 parent 5054bb4 commit c175399

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

docs/v5/config/proxy/vmess.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,87 @@ outbound.vmess
2727
> `uuid`: string
2828
2929
服务器认可的 VMess 用户 ID,必须为合法的 UUID。
30+
31+
#### 服务器示例配置:
32+
33+
此配置为vmess+ws+tls实践配置,此配置推荐用于直连服务器:
34+
```json
35+
{
36+
"log": {
37+
"loglevel": "info"
38+
},
39+
"inbounds": [
40+
{
41+
"port": 443, //这里建议用443(HTTPS标准端口,虽然现在所有的实践表明端口号和被封禁频率没有关系,但是设置为443可以加强伪装)
42+
"protocol": "vmess",
43+
"settings": {
44+
"clients": [
45+
{
46+
"id": "6225d026-dfda-4bcc-a5f5-07cd22fc0c8f",
47+
"alterId": 0, //设置为0以开启AEAD
48+
"security": "auto"
49+
}
50+
]
51+
},
52+
"streamSettings": {
53+
"network": "ws",
54+
"wsSettings": {
55+
"path": "/guojixinwen" //加入TLS后,这个path用于认证,请设置不易被猜测的路径
56+
},
57+
"security": "tls",
58+
"tlsSettings": {
59+
"certificates": [
60+
{
61+
"certificateFile": "/root/crt.crt", //使用CA或自签名证书
62+
"keyFile": "/root/key.key"
63+
}
64+
]
65+
}
66+
}
67+
}
68+
],
69+
"outbounds": [
70+
{
71+
"protocol": "freedom",
72+
"settings": {}
73+
}
74+
]
75+
}
76+
```
77+
vmess+httpupgrade配置如下,这个传输层在性能上有一定的提升,适合过CDN:
78+
```json
79+
{
80+
"log": {
81+
"error": {
82+
"level": "info"
83+
},
84+
"access": {
85+
"type": "None"
86+
}
87+
},
88+
"inbounds": [
89+
{
90+
"protocol": "vmess",
91+
"settings": {
92+
"users": [
93+
"34455e67-fb2f-4fba-9b06-a633937a2263"
94+
]
95+
},
96+
"port": 80,
97+
"streamSettings": {
98+
"transport": "httpupgrade",
99+
"transportSettings": {
100+
"path": "/download",
101+
"host": "proxy.example.net" //这里请改为你的服务器地址
102+
},
103+
"security": "none"
104+
}
105+
}
106+
],
107+
"outbounds": [
108+
{
109+
"protocol": "freedom"
110+
}
111+
]
112+
}
113+
```

0 commit comments

Comments
 (0)