vpn
This commit is contained in:
76
roles/xray-vps-setup/templates/xray.json.j2
Normal file
76
roles/xray-vps-setup/templates/xray.json.j2
Normal file
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"log": {
|
||||
"loglevel": "info"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"tag": "VLESS TCP VISION REALITY",
|
||||
"listen": "0.0.0.0",
|
||||
"port": 443,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "{{ xray_uuid.stdout}}",
|
||||
"email": "default",
|
||||
"flow": "xtls-rprx-vision"
|
||||
}],
|
||||
"decryption": "none"
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "tcp",
|
||||
"security": "reality",
|
||||
"realitySettings": {
|
||||
"xver": 1,
|
||||
"dest": "127.0.0.1:4123",
|
||||
"serverNames": [
|
||||
"{{ domain }}"
|
||||
],
|
||||
"privateKey": "{{ x25519_pik.stdout }}",
|
||||
"shortIds": [
|
||||
"{{ short_id.stdout }}"
|
||||
]
|
||||
}
|
||||
},
|
||||
"sniffing": {
|
||||
"enabled": true,
|
||||
"destOverride": [
|
||||
"http",
|
||||
"tls"
|
||||
],
|
||||
"routeOnly": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom",
|
||||
"tag": "direct",
|
||||
"settings": {
|
||||
"domainStrategy": "UseIPv4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"protocol": "blackhole",
|
||||
"tag": "block"
|
||||
}
|
||||
],
|
||||
"routing": {
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "bittorrent",
|
||||
"outboundTag": "block"
|
||||
}
|
||||
],
|
||||
"domainStrategy": "IPIfNonMatch"
|
||||
},
|
||||
"dns": {
|
||||
"servers": [
|
||||
"1.1.1.1",
|
||||
"8.8.8.8"
|
||||
],
|
||||
"queryStrategy": "UseIPv4",
|
||||
"disableFallback": false,
|
||||
"tag": "dns-aux"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user