This commit is contained in:
Robert Zhou
2020-05-08 23:18:53 +01:00
parent 2456e5a785
commit 62a03a5d1d
12 changed files with 225 additions and 62 deletions
+28 -28
View File
@@ -1,30 +1,30 @@
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "debug"
},
"inbound": {
"port": 30003,
"listen":"127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "CLIENT_ID",
"alterId": CLIENT_ALTERID
}
]
},
"streamSettings":{
"network":"ws",
"wsSettings": {
"path": "CLIENT_WSPATH"
}
}
},
"outbound": {
"protocol": "freedom",
"settings": {}
}
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "debug"
},
"inbound": {
"port": LISTENING_PORT,
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "CLIENT_ID",
"alterId": CLIENT_ALTERID
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "CLIENT_WSPATH"
}
}
},
"outbound": {
"protocol": "freedom",
"settings": {}
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ server {
location CLIENT_WSPATH {
proxy_redirect off;
proxy_pass http://127.0.0.1:30003;
proxy_pass http://127.0.0.1:LISTENING_PORT;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";