mirror of
https://github.com/v2fly/v2ray-examples.git
synced 2025-11-26 22:55:38 +08:00
根据v5版本现有文档添加配置
This commit is contained in:
34
V5-Trojan-TCP-TLS (minimal)/config_client.json
Normal file
34
V5-Trojan-TCP-TLS (minimal)/config_client.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"access": {
|
||||
"type": "Console",
|
||||
"level": "Warning"
|
||||
},
|
||||
"error": {
|
||||
"type": "Console",
|
||||
"level": "Warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 10800,
|
||||
"address": "127.0.0.1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udpEnabled": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "trojan",
|
||||
"settings": {
|
||||
"address": "example.com",
|
||||
"port": 443,
|
||||
"password": "your password"
|
||||
},
|
||||
"streamSettings": {
|
||||
"transport": "tcp",
|
||||
"security": "tls"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
42
V5-Trojan-TCP-TLS (minimal)/config_server.json
Normal file
42
V5-Trojan-TCP-TLS (minimal)/config_server.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"access": {
|
||||
"type": "Console",
|
||||
"level": "Warning"
|
||||
},
|
||||
"error": {
|
||||
"type": "Console",
|
||||
"level": "Warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 443,
|
||||
"protocol": "trojan",
|
||||
"settings": {
|
||||
"users": [
|
||||
"your password1",
|
||||
"your password2"
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"transport": "tcp",
|
||||
"security": "tls",
|
||||
"securitySettings": {
|
||||
"nextProtocol": [
|
||||
"http/1.1"
|
||||
],
|
||||
"certificate": [
|
||||
{
|
||||
"certificateFile": "/path/to/fullchain.crt",
|
||||
"keyFile": "/path/to/private.key"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user