From 77a86350a87894a54339be12b2f0c81bb81623dc Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Sat, 22 Nov 2025 16:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/template/reality_config.json | 127 ++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 conf/template/reality_config.json diff --git a/conf/template/reality_config.json b/conf/template/reality_config.json new file mode 100644 index 0000000..c6ef4aa --- /dev/null +++ b/conf/template/reality_config.json @@ -0,0 +1,127 @@ +{ + "log": { + "loglevel": "error", + "access": "/var/log/xray/access.log", + "error": "/var/log/xray/error.log" + }, + "api": { + "tag": "api", + "services": [ + "HandlerService", + "LoggerService", + "StatsService" + ] + }, + "stats": {}, + "policy": { + "levels": { + "0": { + "statsUserUplink": true, + "statsUserDownlink": true + } + }, + "system": { + "statsInboundUplink": true, + "statsInboundDownlink": true, + "statsOutboundUplink": true, + "statsOutboundDownlink": true + } + }, + "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": 8003, + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "你的UUID", + "flow": "xtls-rprx-vision" + } + ], + "decryption": "none" + }, + "streamSettings": { + "network": "tcp", + "security": "reality", + "realitySettings": { + "show": true, + "dest": "gitea.9001001.xyz:443", + "xver": 0, + "maxTimeDiff": 0, + "minClientVer": "", + "serverNames": [ + "gitea.9001001.xyz" + ], + "privateKey": "你的密钥", + "shortIds": [ + "" + ] + } + }, + "sniffing": { + "enabled": true, + "destOverride": [ + "http", + "tls" + ] + } + } + ], + "outbounds": [ + { + "protocol": "freedom", + "tag": "direct" + }, + { + "protocol": "blackhole", + "tag": "blocked" + } + ], + "routing": { + "domainStrategy": "IPIfNonMatch", + "rules": [ + { + "inboundTag": [ + "api" + ], + "outboundTag": "api", + "type": "field" + }, + { + "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" + } + ] + } +} \ No newline at end of file