gitscope
← marzneshin / nightly / app/templates/xray.json
https://dev.kronoz.win/r/marzneshin.git
app/templates/xray.json · JSON
Blame Raw
 1{
 2    "log": {
 3        "loglevel": "warning"
 4    },
 5    "dns": {
 6        "queryStrategy": "UseIP",
 7        "servers": [
 8            "1.1.1.1",
 9            "8.8.8.8"
10        ],
11        "tag": "dns_out"
12    },
13    "routing": {
14        "domainStrategy": "IPIfNonMatch",
15        "rules": [
16            {
17                "domain": [
18                    "geosite:category-ads-all"
19                ],
20                "outboundTag": "block"
21            },
22            {
23                "domain": [
24                    "regexp:.*\\.ir",
25                    "domain:ir",
26                    "geosite:private"
27                ],
28                "outboundTag": "direct"
29            },
30            {
31                "ip": [
32                    "geoip:ir",
33                    "geoip:private"
34                ],
35                "outboundTag": "direct"
36            }
37        ]
38    },
39    "policy": {
40        "system": {
41            "statsOutboundDownlink": true,
42            "statsOutboundUplink": true
43        }
44    },
45    "inbounds": [
46        {
47            "port": 10808,
48            "protocol": "socks",
49            "settings": {
50                "auth": "noauth",
51                "udp": true,
52                "userLevel": 8
53            },
54            "sniffing": {
55                "destOverride": [
56                    "http",
57                    "tls",
58                    "fakedns"
59                ],
60                "enabled": true
61            },
62            "tag": "socks"
63        },
64        {
65            "port": 10809,
66            "protocol": "http",
67            "settings": {
68                "userLevel": 8
69            },
70            "tag": "http"
71        }
72    ],
73    "outbounds": [
74        {
75            "tag": "direct",
76            "protocol": "freedom"
77        },
78        {
79            "tag": "block",
80            "protocol": "blackhole"
81        }
82    ],
83    "stats": {}
84}