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

@@ -0,0 +1,44 @@
{
"log": {
"loglevel": "warning",
"access": "/var/log/xray/access.log",
"error": "/var/log/xray/error.log"
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": {{ vault_xray_port }},
"protocol": "vless",
"settings": {
"clients": [
{
"id": "{{ vault_xray_uuid }}",
"flow": "xtls-rprx-vision"
}
],
"decryption": "none",
"udp": true
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"dest": "dl.google.com:443",
"serverNames": ["dl.google.com"],
"privateKey": "{{ vault_xray_private_key }}",
"shortIds": ["{{ vault_xray_short_id }}"]
}
},
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls", "quic"]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
}
]
}