2025年9月5日大约 1 分钟
port: 7890
socks-port: 7891
allow-lan: true
mode: Rule
log-level: debug
proxies:
- name: reality-hk
type: vless
server: www.vpsdl.top # 你的域名或IP
port: 443
uuid: 416a7a21-8578-4812-a058-5e4c97a04f8a
flow: ""
udp: true
tls: true
servername: speed.cloudflare.com
reality-opts:
public-key: mHNld0mHD3qIetET1Ya9pRodwh8XvHR2u0qnz7TmSgw
short-id: 0123456789abcdef
network: tcp
client-fingerprint: chrome
{
"log": {
"loglevel": "debug"
},
"inbounds": [
{
"tag": "dokodemo-in",
"port": 443,
"protocol": "dokodemo-door",
"settings": {
"address": "::1",
"port": 4431,
"network": "tcp"
},
"sniffing": {
"enabled": true,
"destOverride": [
"tls"
],
"routeOnly": true
}
},
{
"listen": "::1",
"port": 4431,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "416a7a21-8578-4812-a058-5e4c97a04f8a"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"dest": "speed.cloudflare.com:443",
"serverNames": [
"speed.cloudflare.com"
],
"privateKey": "CFPx9G3GZTjKNlEJqxFpBNKRQpRXAn4b0KhlR25wy2o",
"shortIds": [
"",
"0123456789abcdef"
]
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
],
"routeOnly": true
}
}
],
"outbounds": [
{
"tag": "hangzhou-proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "121.43.225.10",
"port": 10000,
"users": [
{
"id": "4303edb6-7b0f-488f-af9f-6d77493eea20",
"encryption": "none"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"serverName": "www.microsoft.com",
"fingerprint": "chrome",
"shortId": "0123456789abcdef",
"publicKey": "LCph-fpnMbsk7zQdkRcK34fvpylJDJeYJH9uvzvvsGs"
}
}
},
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
],
"routing": {
"rules": [
{
"type": "field",
"domain": [
"speed.cloudflare.com"
],
"outboundTag": "direct"
}
],
"domainStrategy": "AsIs"
}
}
{
"log": {
"loglevel": "debug"
},
"inbounds": [
{
"tag": "dokodemo-in",
"port": 10000,
"protocol": "dokodemo-door",
"settings": {
"address": "::1",
"port": 4431,
"network": "tcp"
},
"sniffing": {
"enabled": true,
"destOverride": [
"tls"
],
"routeOnly": true
}
},
{
"listen": "::1",
"port": 4431,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "4303edb6-7b0f-488f-af9f-6d77493eea20"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"dest": "www.microsoft.com:443",
"serverNames": [
"www.microsoft.com"
],
"privateKey": "KM2JAeLrofBo4VSzO4jHsTjZi_iNfY2YOcBUl6hGHVc",
"shortIds": [
"",
"0123456789abcdef"
]
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
],
"routeOnly": true
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
],
"routing": {
"rules": [
{
"type": "field",
"domain": [
"www.microsoft.com"
],
"outboundTag": "direct"
}
]
}
}
# docker-compose-cn1.yml
version: '3.8'
services:
reality-cn1:
image: teddysun/xray:latest
container_name: reality-cn1
volumes:
- ./config.json:/etc/xray/config.json:ro
ports:
- "10000:10000/tcp"
- "10000:10000/udp"
restart: always
# docker-compose-hk.yml
version: '3.8'
services:
reality-hk:
image: teddysun/xray:latest
container_name: reality-hk
volumes:
- ./config.json:/etc/xray/config.json:ro
ports:
- "443:443/tcp"
- "443:443/udp"
restart: always