|
发表于 2021-12-27 21:17:02
|
显示全部楼层
打开X-UI面板后进入《面板设置》——《xray相关设置》——《xray配置模板》把代码替换掉。
- {
- "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"
- },
- {
- "tag": "GoNetflix",
- "protocol": "vmess",
- "streamSettings": {
- "network": "ws",
- "security": "tls",
- "tlsSettings": {
- "allowInsecure": false
- },
- "wsSettings": {
- "path": "ws"
- }
- },
- "mux": {
- "enabled": true,
- "concurrency": 8
- },
- "settings": {
- "vnext": [
- {
- "address": "free-sg-01.gonetflix.xyz",
- "port": 443,
- "users": [
- {
- "id": "402d7490-6d4b-42d4-80ed-e681b0e6f1f9",
- "security": "auto",
- "alterId": 0
- }
- ]
- }
- ]
- }
- }
- ],
- "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"
- },
- {
- "type": "field",
- "outboundTag": "GoNetflix",
- "domain": ["geosite:netflix","nflxvideo.net","nflxext.com","nflxso.net"]
- }
- ]
- },
- "stats": {}
- }
复制代码 |
|