Skip to content

Instantly share code, notes, and snippets.

@seyedmahdi4
Last active December 16, 2022 00:47
Show Gist options
  • Save seyedmahdi4/f55a8b604a511d523bf60a927f577728 to your computer and use it in GitHub Desktop.
Save seyedmahdi4/f55a8b604a511d523bf60a927f577728 to your computer and use it in GitHub Desktop.
cat << EOF > /usr/local/etc/v2ray/config.json
{
"log": {
"loglevel": "warning"
},
"policy": {
"levels": {
"0": {
"handshake": 5,
"connIdle": 300,
"uplinkOnly": 2,
"downlinkOnly": 5,
"statsUserUplink": false,
"statsUserDownlink": false,
"bufferSize": 10240
}
},
"system": {
"statsInboundUplink": false,
"statsInboundDownlink": false,
"statsOutboundUplink": false,
"statsOutboundDownlink": false
}
},
"inbounds": [
{
"port": $PORT,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "$UUID",
"level": 1,
"alterId": 64
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/ray"
}
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
],
"dns": {
"servers": [
"https+local://1.1.1.1/dns-query",
"8.8.8.8",
"8.8.4.4",
"1.1.1.1",
"1.0.0.1",
"4.2.2.4",
"localhost"
]
}
}
EOF
@MahbodHastam
Copy link

Error: no such file or directory: /usr/local/etc/v2ray/config.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment