58 lines
1.1 KiB
Django/Jinja
58 lines
1.1 KiB
Django/Jinja
{
|
|||
|
|
"outbounds": [
|
||
|
|
{% for item in xray_outbounds %}
|
||
|
|
{
|
||
|
|
"tag": "vless-{{ item.tag }}",
|
||
|
|
"protocol": "vless",
|
||
|
|
"settings": {
|
||
|
|
"vnext": [
|
||
|
|
{
|
||
|
|
"address": "{{ item.address }}",
|
||
|
|
"port": 443,
|
||
|
|
"users": [
|
||
|
|
{
|
||
|
|
"id": "{{ xray_id }}",
|
||
|
|
"flow": "xtls-rprx-vision",
|
||
|
|
"encryption": "{{ xray_encryption }}"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"domainStrategy": "UseIPv4"
|
||
|
|
},
|
||
|
|
"streamSettings": {
|
||
|
|
"network": "xhttp",
|
||
|
|
"xhttpSettings": {
|
||
|
|
"path": "{{ xray_xhttp_path }}",
|
||
|
|
"mode": "stream-one"
|
||
|
|
},
|
||
|
|
"security": "tls",
|
||
|
|
"tlsSettings": {
|
||
|
|
"alpn": [
|
||
|
|
"h2",
|
||
|
|
"h3"
|
||
|
|
],
|
||
|
|
"fingerprint": "firefox"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{% endfor %}
|
||
|
|
{
|
||
|
|
"tag": "direct",
|
||
|
|
"protocol": "freedom",
|
||
|
|
"settings": {
|
||
|
|
"domainStrategy": "UseIPv4"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tag": "blocked",
|
||
|
|
"protocol": "blackhole",
|
||
|
|
"settings": {
|
||
|
|
"response": {
|
||
|
|
"type": "none"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|