update
This commit is contained in:
parent
16184ffd47
commit
fa6f416c13
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
conf/key.txt
|
conf/key.txt
|
||||||
|
log/*
|
||||||
|
|||||||
@ -8,9 +8,6 @@ fi
|
|||||||
|
|
||||||
script_dir=$(cd "$(dirname "$0")"; pwd) # 脚本文件绝对路径
|
script_dir=$(cd "$(dirname "$0")"; pwd) # 脚本文件绝对路径
|
||||||
|
|
||||||
# 将reality配置文件日写入config.json配置文件
|
|
||||||
cp "$script_dir/../conf/reality_config.json" "$script_dir/../conf/config.json"
|
|
||||||
|
|
||||||
# 生成uui, 写入到config.json文件
|
# 生成uui, 写入到config.json文件
|
||||||
bash $script_dir/update_uuid.sh
|
bash $script_dir/update_uuid.sh
|
||||||
|
|
||||||
|
|||||||
@ -1,127 +0,0 @@
|
|||||||
{
|
|
||||||
"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": "www.expedia.com:443",
|
|
||||||
"xver": 0,
|
|
||||||
"maxTimeDiff": 0,
|
|
||||||
"minClientVer": "",
|
|
||||||
"serverNames": [
|
|
||||||
"www.expedia.com"
|
|
||||||
],
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,10 +1,8 @@
|
|||||||
version: "3.9"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
xray:
|
xray:
|
||||||
image: teddysun/xray:latest
|
image: teddysun/xray:latest
|
||||||
restart: always
|
restart: always
|
||||||
container_name: xray
|
container_name: xray_reality
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
volumes:
|
volumes:
|
||||||
- "./conf:/etc/xray"
|
- "./conf:/etc/xray"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user