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
49 lines
1.2 KiB
JSON
49 lines
1.2 KiB
JSON
{
|
|
"log": {
|
|
"loglevel": "debug"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"port": 1080,
|
|
"listen": "127.0.0.1",
|
|
"protocol": "socks",
|
|
"settings": {
|
|
"udp": true
|
|
}
|
|
},
|
|
{
|
|
"port": 1081,
|
|
"protocol": "http",
|
|
"sniffing": {
|
|
"enabled": true,
|
|
"destOverride": ["http", "tls"]
|
|
},
|
|
"settings": {
|
|
"auth": "noauth"
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "trojan",
|
|
"settings": {
|
|
"servers": [
|
|
{
|
|
"address": "example.com", // 你的域名或服务器 IP
|
|
"flow": "xtls-rprx-direct", // Linux 或安卓可改为 "xtls-rprx-splice"
|
|
"port": 443,
|
|
"password": "your_password" // 你的密码
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "xtls",
|
|
"xtlsSettings": {
|
|
"serverName": "example.com" // 你的域名
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|