# nginx conf partal
location /haha
{
proxy_redirect off;
# the prot should same with config v2***
proxy_pass http://127.0.0.1:10000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
# Show realip in v2*** access.log
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
v2** config
{
"log": {
"loglevel": "debug",
"access": "/var/log/science/access.log",
"error": "/var/log/science/error.log"
},
"inbounds": [
{
"port": 10000,
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "2fed9375-640b-41f2-b568-0f612ba23411",
"alterId": 64,
"security": "none"
}
]
},
"streamSettings": {
"network": "ws",
"security": "auto",
"wsSettings": {
"path": "/haha"
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
]
}
this is the end. B.T.W. Fuck GGFFWW