mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-22 08:31:29 +00:00
2aad651777
* Add files via upload trojan的xtls配置 设置服务端配置的minVersion和OCSP Stapling nginx.conf增加HSTS * Create Test * Delete Test * Create config_server.json * Create config_client.json * Create nginx.conf * Delete config_server.json * Delete config_client.json * Delete nginx.conf * Update nginx.conf * Update config_client.json * Update config_client.json * Update config_server.json * Update nginx.conf * Update config_server.json
54 lines
1.6 KiB
JSON
54 lines
1.6 KiB
JSON
{
|
|
"log": {
|
|
"loglevel": "debug"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"port": 443,
|
|
"protocol": "trojan",
|
|
"settings": {
|
|
"clients": [
|
|
{
|
|
"password":"your_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", // 证书文件绝对目录
|
|
"keyFile": "/path/to/key", // 密钥文件绝对目录
|
|
"ocspStapling": 3600 // 验证周期 3600 秒
|
|
}
|
|
],
|
|
"minVersion": "1.2" // 如果是ecc证书则最低使用 TLSv1.2 ,如果你不清楚证书类型或者不是 ecc 证书,删掉这行
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "freedom"
|
|
}
|
|
]
|
|
}
|