d2ray/server.in

43 lines
924 B
Plaintext
Raw Normal View History

2020-05-04 09:16:02 +00:00
{
2021-02-01 06:07:23 +00:00
"log": {
2021-02-01 06:33:57 +00:00
"loglevel": "{{ loglevel }}",
2021-02-01 06:07:23 +00:00
"access": "/etc/xray/access.log",
"error": "/etc/xray/error.log"
},
2020-05-04 09:16:02 +00:00
"inbounds": [
{
2021-01-23 11:07:27 +00:00
"port": 443,
"protocol": "vless",
2020-05-04 09:16:02 +00:00
"settings": {
"clients": [
2021-01-16 22:53:44 +00:00
{{ clients }}
2021-01-23 11:07:27 +00:00
],
"decryption": "none",
"fallbacks": [
{
2021-02-01 06:07:23 +00:00
"dest": "d2ray_nginx:80"
2021-01-23 11:07:27 +00:00
}
2020-05-04 09:16:02 +00:00
]
},
"streamSettings": {
2021-01-23 11:07:27 +00:00
"network": "tcp",
"security": "xtls",
"xtlsSettings": {
2021-02-01 06:07:23 +00:00
"alpn": ["http/1.1", "h2"],
"certificates": [
2021-01-23 11:07:27 +00:00
{
2021-02-01 06:07:23 +00:00
"certificateFile": "/le-etc/letsencrypt/live/{{ subdomain }}.{{ domain }}/fullchain.pem",
"keyFile": "/le-etc/letsencrypt/live/{{ subdomain }}.{{ domain }}/privkey.pem"
2021-01-23 11:07:27 +00:00
}
]
2020-05-04 09:16:02 +00:00
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
]
2021-01-16 22:53:44 +00:00
}