ansible: 添加 xray 服务部署配置

This commit is contained in:
2026-08-23 01:05:08 +08:00
parent 3329694df2
commit 0f79d5ca9b
3 changed files with 83 additions and 29 deletions

View File

@@ -1,44 +0,0 @@
{
"log": {
"loglevel": "warning",
"access": "/var/log/xray/access.log",
"error": "/var/log/xray/error.log"
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "817a867d-7bcf-48d1-b30e-5c6794852e13",
"flow": "xtls-rprx-vision"
}
],
"decryption": "none",
"udp": true
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"dest": "dl.google.com:443",
"serverNames": ["www.cloudflare.com"],
"privateKey": "uJQs7FOMjafiU-7kxOUpfJut8ocj5kpr_p-zH7RTt1g",
"shortIds": ["1e21014957dfc7a9"]
}
},
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls", "quic"]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
}
]
}