增加新的配置文件模板
This commit is contained in:
parent
bb01321871
commit
adca43cbba
182
conf/template/xhttp_reality_config.json
Normal file
182
conf/template/xhttp_reality_config.json
Normal file
@ -0,0 +1,182 @@
|
||||
{
|
||||
"log": {
|
||||
"dnsLog": false,
|
||||
"access": "/var/log/xray/access.log",
|
||||
"error": "/var/log/xray/error.log",
|
||||
"loglevel": "error",
|
||||
"maskAddress": ""
|
||||
},
|
||||
"routing": {
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"rules": [
|
||||
{
|
||||
"inboundTag": [
|
||||
"api"
|
||||
],
|
||||
"outboundTag": "api",
|
||||
"type": "field"
|
||||
},
|
||||
{
|
||||
"domain": [
|
||||
"domain:byr.pt"
|
||||
],
|
||||
"type": "field",
|
||||
"outboundTag": "direct"
|
||||
},
|
||||
{
|
||||
"domain": [
|
||||
"domain:iqiyi.com",
|
||||
"domain:video.qq.com",
|
||||
"domain:youku.com"
|
||||
],
|
||||
"type": "field",
|
||||
"outboundTag": "blocked"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:cn",
|
||||
"geoip:private"
|
||||
],
|
||||
"outboundTag": "blocked"
|
||||
},
|
||||
{
|
||||
"protocol": [
|
||||
"bittorrent"
|
||||
],
|
||||
"type": "field",
|
||||
"outboundTag": "blocked"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dns": {
|
||||
"servers": [
|
||||
"https+local://cloudflare-dns.com/dns-query",
|
||||
"1.1.1.1",
|
||||
"1.0.0.1",
|
||||
"8.8.8.8",
|
||||
"8.8.4.4",
|
||||
"localhost"
|
||||
]
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "0.0.0.0",
|
||||
"port": 8005,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "你的UUID",
|
||||
"flow": ""
|
||||
}
|
||||
],
|
||||
"decryption": "none",
|
||||
"fallbacks": []
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "xhttp",
|
||||
"realitySettings": {
|
||||
"dest": "你的reality_dest:443",
|
||||
"maxClient": "",
|
||||
"maxTimediff": 0,
|
||||
"minClient": "",
|
||||
"privateKey": "",
|
||||
"serverNames": [
|
||||
"你的reality_dest"
|
||||
],
|
||||
"shortIds": [
|
||||
""
|
||||
],
|
||||
"show": false,
|
||||
"xver": 0
|
||||
},
|
||||
"security": "reality",
|
||||
"xhttpSettings": {
|
||||
"headers": {},
|
||||
"host": "",
|
||||
"mode": "auto",
|
||||
"noSSEHeader": false,
|
||||
"path": "/14e077b4",
|
||||
"scMaxBufferedPosts": 30,
|
||||
"scMaxEachPostBytes": "1000000",
|
||||
"scStreamUpServerSecs": "20-80",
|
||||
"xPaddingBytes": "100-1000"
|
||||
}
|
||||
},
|
||||
"tag": "inbound-xx",
|
||||
"sniffing": {
|
||||
"enabled": false,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls",
|
||||
"quic",
|
||||
"fakedns"
|
||||
],
|
||||
"metadataOnly": false,
|
||||
"routeOnly": false
|
||||
},
|
||||
"allocate": {
|
||||
"strategy": "always",
|
||||
"refresh": 5,
|
||||
"concurrency": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"port": 65432,
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"address": "127.0.0.1"
|
||||
},
|
||||
"streamSettings": null,
|
||||
"tag": "api",
|
||||
"sniffing": null,
|
||||
"allocate": null
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"tag": "direct",
|
||||
"protocol": "freedom",
|
||||
"settings": {
|
||||
"domainStrategy": "AsIs",
|
||||
"redirect": "",
|
||||
"noises": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag": "blocked",
|
||||
"protocol": "blackhole",
|
||||
"settings": {}
|
||||
}
|
||||
],
|
||||
"transport": null,
|
||||
"policy": {
|
||||
"levels": {
|
||||
"0": {
|
||||
"statsUserDownlink": true,
|
||||
"statsUserUplink": true
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"statsInboundDownlink": true,
|
||||
"statsInboundUplink": true,
|
||||
"statsOutboundDownlink": false,
|
||||
"statsOutboundUplink": false
|
||||
}
|
||||
},
|
||||
"api": {
|
||||
"tag": "api",
|
||||
"services": [
|
||||
"HandlerService",
|
||||
"LoggerService",
|
||||
"StatsService"
|
||||
]
|
||||
},
|
||||
"stats": {},
|
||||
"reverse": null,
|
||||
"fakedns": null,
|
||||
"observatory": null,
|
||||
"burstObservatory": null
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user