Last active
November 20, 2024 13:42
-
-
Save real-jiakai/61f8f399adcd61dcc717c742cd5526e9 to your computer and use it in GitHub Desktop.
xui默认xray配置模板
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"api": { | |
"services": [ | |
"HandlerService", | |
"LoggerService", | |
"StatsService" | |
], | |
"tag": "api" | |
}, | |
"inbounds": [ | |
{ | |
"listen": "127.0.0.1", | |
"port": 62789, | |
"protocol": "dokodemo-door", | |
"settings": { | |
"address": "127.0.0.1" | |
}, | |
"tag": "api" | |
} | |
], | |
"outbounds": [ | |
{ | |
"protocol": "freedom", | |
"settings": {} | |
}, | |
{ | |
"protocol": "blackhole", | |
"settings": {}, | |
"tag": "blocked" | |
} | |
], | |
"policy": { | |
"system": { | |
"statsInboundDownlink": true, | |
"statsInboundUplink": true | |
} | |
}, | |
"routing": { | |
"rules": [ | |
{ | |
"inboundTag": [ | |
"api" | |
], | |
"outboundTag": "api", | |
"type": "field" | |
}, | |
{ | |
"ip": [ | |
"geoip:private" | |
], | |
"outboundTag": "blocked", | |
"type": "field" | |
}, | |
{ | |
"outboundTag": "blocked", | |
"protocol": [ | |
"bittorrent" | |
], | |
"type": "field" | |
} | |
] | |
}, | |
"stats": {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"api": { | |
"services": [ | |
"HandlerService", | |
"LoggerService", | |
"StatsService" | |
], | |
"tag": "api" | |
}, | |
"inbounds": [ | |
{ | |
"listen": "127.0.0.1", | |
"port": 62789, | |
"protocol": "dokodemo-door", | |
"settings": { | |
"address": "127.0.0.1" | |
}, | |
"tag": "api" | |
} | |
], | |
"outbounds": [ | |
{ | |
"protocol": "freedom", | |
"settings": {}, | |
"tag": "direct" | |
}, | |
{ | |
"protocol": "freedom", | |
"settings": {}, | |
"streamSettings": { | |
"sockopt": { | |
"tcpFastOpen": true, | |
"interface": "WARP" | |
} | |
}, | |
"tag": "warp" | |
}, | |
{ | |
"protocol": "blackhole", | |
"settings": {}, | |
"tag": "blocked" | |
} | |
], | |
"policy": { | |
"system": { | |
"statsInboundDownlink": true, | |
"statsInboundUplink": true | |
} | |
}, | |
"routing": { | |
"rules": [ | |
{ | |
"inboundTag": [ | |
"api" | |
], | |
"outboundTag": "api", | |
"type": "field" | |
}, | |
{ | |
"domain": [ | |
"chat.openai.com", | |
"www.bing.com" | |
], | |
"outboundTag": "warp", | |
"type": "field" | |
}, | |
{ | |
"ip": [ | |
"geoip:private" | |
], | |
"outboundTag": "blocked", | |
"type": "field" | |
}, | |
{ | |
"outboundTag": "blocked", | |
"protocol": [ | |
"bittorrent" | |
], | |
"type": "field" | |
} | |
] | |
}, | |
"stats": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment