Skip to content

Instantly share code, notes, and snippets.

@aiziyuer
Forked from Lua12138/v2ray.client.json
Created October 9, 2019 05:51
Show Gist options
  • Save aiziyuer/1dda73d127a941861a1d839dc4493ee7 to your computer and use it in GitHub Desktop.
Save aiziyuer/1dda73d127a941861a1d839dc4493ee7 to your computer and use it in GitHub Desktop.
{
"log": {
"loglevel": "info"
},
"dns": {
"remark": "此节点配置上游DNS",
"servers": [
"1.2.4.8",
"119.29.29.29"
]
},
"routing": {
"remark": "此节点配置路由,绕过国内以及局域网的代理",
"strategy": "rules",
"settings": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"port": "0-65535",
"network": "tcp,udp",
"domain": [
"geosite:cn"
],
"ip": [
"geoip:cn",
"geoip:private"
],
"outboundTag": "direct"
}
]
}
},
"inbound": {
"remark": "此节点配置入站socks监听信息",
"port": 1080,
"listen": "127.0.0.1",
"protocol": "socks",
"domainOverride": [
"tls",
"http"
],
"settings": {
"auth": "noauth",
"udp": false
}
},
"inboundDetour": [
{
"remark": "此节点配置入站http监听信息",
"port": 8080,
"listen": "127.0.0.1",
"protocol": "http",
"domainOverride": [
"tls",
"http"
],
"settings": {
"timeout": 60,
"allowTransparent": false
}
}
],
"outbound": {
"remark": "此节点配置出站信息",
"protocol": "vmess",
"mux": {
"enabled": true,
"concurrency": 512
},
"settings": {
"vnext": [
{
"remark": "此节点配置出站代理的目标位置,可以为域名或者IP",
"address": "my.server.domain.or.ip",
"port": 443,
"users": [
{
"id": "b831381d-6324-4d53-ad4f-8cda48b30811",
"alterId": 64
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"wsSettings": {
"path": "/ray"
},
"tlsSeettings": {
"remark": "此节点配置发送到代理节点的主机名,主要用于NGINX转发使用",
"serverName": "my.nginx.passby.domain",
"allowInsecure": false
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment