Skip to content

Instantly share code, notes, and snippets.

@c2h2
Created September 17, 2019 15:33
Show Gist options
  • Save c2h2/f25bd351eb8f533c821c7bc22293c936 to your computer and use it in GitHub Desktop.
Save c2h2/f25bd351eb8f533c821c7bc22293c936 to your computer and use it in GitHub Desktop.
sample v2ray config.json
{
"dns" : {
"servers" : [
"1.1.1.1"
]
},
"inbounds" : [
{
"listen" : "0.0.0.0",
"port" : 1080,
"protocol" : "socks",
"tag" : "socksinbound",
"settings" : {
"auth" : "noauth",
"udp" : true,
"ip" : "0.0.0.0"
}
},
{
"listen" : "0.0.0.0",
"port" : 8001,
"protocol" : "http",
"tag" : "httpinbound",
"settings" : {
"timeout" : 0
}
}
],
"outbounds" : [
{
"sendThrough" : "0.0.0.0",
"mux" : {
"enabled" : false,
"concurrency" : 8
},
"protocol" : "vmess",
"settings" : {
"vnext" : [
{
"address" : "-.-.-.-",
"users" : [
{
"id" : "-----------",
"alterId" : 64,
"security" : "auto",
"level" : 1
}
],
"port" : -----
}
]
},
"tag" : "v2ray",
"streamSettings" : {
"sockopt" : {
},
"quicSettings" : {
"key" : "",
"security" : "none",
"header" : {
"type" : "none"
}
},
"tlsSettings" : {
"allowInsecure" : false,
"alpn" : [
"http\/1.1"
],
"serverName" : "server.cc",
"allowInsecureCiphers" : false
},
"wsSettings" : {
"path" : "",
"headers" : {
}
},
"httpSettings" : {
"path" : "",
"host" : [
""
]
},
"tcpSettings" : {
"header" : {
"type" : "none"
}
},
"kcpSettings" : {
"header" : {
"type" : "none"
},
"mtu" : 1350,
"congestion" : false,
"tti" : 20,
"uplinkCapacity" : 5,
"writeBufferSize" : 1,
"readBufferSize" : 1,
"downlinkCapacity" : 20
},
"security" : "none",
"network" : "tcp"
}
}
],
"routing" : {
"name" : "all_to_main",
"domainStrategy" : "AsIs",
"rules" : [
{
"type" : "field",
"outboundTag" : "v2ray",
"port" : "0-65535"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment