本帖最后由 c7J8 于 2022-5-27 11:34 编辑
根据你自己的改一下
- {
- "log": {
- "access": "/var/log/“v-2-r-a-y”/access.log",
- "error": "/var/log/“v-2-r-a-y”/error.log",
- "loglevel": "warning"
- },
- "inbounds": [
- {
- "port":51800,
- "listen": "127.0.0.1",
- "tag": "vmess-in-1",
- "protocol": "vmess",
- "settings": {
- "clients": [
- {
- "id":"uuid*************", ##uuid
- "alterId":0
- }
- ]
- },
- "streamSettings": {
- "network": "ws",
- "wsSettings": {
- "path": "/a1a51800/", ##反代路径
- "headers": {
- "Host": "域名***********" ##你的域名
- }
- }
- }
- },
- {
- "listen": "0.0.0.0",
- "port": 8080,
- "tag": "vmess-in-2",
- "protocol": "vmess",
- "settings": {
- "clients": [
- {
- "id": "uuid*************", ##uuid上同
- "alterId":0
- }
- ]
- },
- "streamSettings": {
- "network": "tcp",
- "tcpSettings": {
- "header": {
- "type": "http",
- "response": {
- "version": "1.1",
- "status": "200",
- "reason": "OK",
- "headers": {
- "Content-Type": ["application/octet-stream", "video/mpeg"],
- "Transfer-Encoding": ["chunked"],
- "Connection": ["keep-alive"],
- "Pragma": "no-cache"
- }
- }
- }
- }
- }
- }
- ],
- "outbounds": [
- {
- "protocol": "freedom",
- "settings": { },
- "tag": "direct"
- },
- {
- "protocol": "blackhole",
- "settings": { },
- "tag": "blocked"
- }
- ],
- "dns": {
- "servers": [
- "https+local://1.1.1.1/dns-query",
- "1.1.1.1",
- "1.0.0.1",
- "8.8.8.8",
- "8.8.4.4",
- "localhost"
- ]
- },
- "routing": {
- "domainStrategy": "IPIfNonMatch",
- "domainMatcher": "mph",
- "rules": [
- {
- "type": "field",
- "inboundTag": ["vmess-in-1","vmess-in-2"],
- "domain": ["geosite:category-ads-all"],
- "outboundTag": "blocked"
- },
- {
- "type": "field",
- "inboundTag": ["vmess-in-1","vmess-in-2"],
- "outboundTag": "direct"
- }
- ]
- }
- }
复制代码
|