mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-09 18:43:13 +00:00
cebb145398
* add translate ENGLISH version README.md * Update README.md add link README.ENG.md * Update config_server.json - translation of comments into english * Update config_client.json translation of comments into english * Update config_server.json translation of comments into english * Update config_client.json, translation of comments into english * Update config_server.json translation of comments into english
54 lines
1.7 KiB
JSON
54 lines
1.7 KiB
JSON
{
|
|
"log": {
|
|
"loglevel": "debug"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"port": 443,
|
|
"protocol": "trojan",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"password":"your_password", // password
|
|
"flow": "xtls-rprx-direct"
|
|
}
|
|
],
|
|
"fallbacks": [
|
|
{
|
|
"dest": "/dev/shm/default.sock",
|
|
"xver": 1
|
|
},
|
|
{
|
|
"alpn": "h2",
|
|
"dest": "/dev/shm/h2c.sock",
|
|
"xver": 1
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "xtls",
|
|
"xtlsSettings": {
|
|
"alpn": [
|
|
"http/1.1",
|
|
"h2"
|
|
],
|
|
"certificates": [
|
|
{
|
|
"certificateFile": "/path/to/cert", // Certificate file absolute directory
|
|
"keyFile": "/path/to/key", // Key file absolute directory
|
|
"ocspStapling": 3600 // Verification cycle 3600 Second
|
|
}
|
|
],
|
|
"minVersion": "1.2" // If it is an ecc certificate, use TLSv1.2 at least. If you don't know the certificate type or it is not an ecc certificate, delete this line
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "freedom"
|
|
}
|
|
]
|
|
}
|