Open nikotung opened 2 years ago
v2ray server file
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbounds": [{
"port": 443,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "8ef39e-3709-47fa-85b5-aadf69906cc9",
"level": 1,
"alterId": 2
}
]
}
}],
"outbounds": [{
"protocol": "socks",
"settings": {
"servers": [{
"address": "trojan-go",
"port": 1080
}]
}
}]
}
trojan-go client config file
{
"local_addr": "0.0.0.0",
"local_port": 1080,
"mux":
{
"enabled": true
},
"password":
[
"your_password"
],
"log_level": 4,
"remote_addr": "your_domain",
"remote_port": 443,
"router":
{
"block":
[
"geosite:category-ads"
],
"bypass":
[
"geoip:cn",
"geoip:private",
"geosite:cn",
"geosite:private"
],
"default_policy": "proxy",
"enabled": true,
"geoip": "/etc/trojan-go/geoip.dat",
"geosite": "/etc/trojan-go/geosite.dat",
"proxy":
[
"geosite:geolocation-!cn"
]
},
"run_type": "client",
"ssl":
{
"sni": "your_domain"
},
"websocket":
{
"enabled": true,
"host": "your_domain",
"path": "/websocketpath"
}
}
docker-compose file