Replies: 3 comments 1 reply
-
It is crystal clear that your configuration is malformed (invalid JSON). corrected: {
"$schema": "https://cdn.jsdelivr.net/gh/EHfive/v2ray-jsonschema/v4-config.schema.json",
"log": {
"access": "/var/log/v2fly/access.log",
"error": "/var/log/v2fly/error.log",
"loglevel": "info"
},
"inbounds": [
{
"port": 10090,
"protocol": "trojan",
"settings": {
"clients": [
{
"email": "xxxx@gmail.com",
"password": "83wz5Jtkf4ErN725vFGc"
}
]
},
"streamSettings": {
"network": "ws",
"security": "none",
"wsSettings": {
"acceptProxyProtocol": true,
"path": "/fd3ad3c7-9705-4b9a-83fd-99ecf89c0cfe"
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
} It also seems that you are using an editor without auto formatting and diagnostics, or you can spot those obvious errors from early on. I really suggest you to edit JSON files with a proper editor, such as VSCode, which could save you from such trouble. VSCode can also autocomplete V2Ray configuration file if a JSON schema was provided. The documentation is an essential read if you are going to configure V2Ray manually. The beginner's guide also helps. |
Beta Was this translation helpful? Give feedback.
-
@mydogshitgold Thank you for your answer. I used the above configuration to test, but it couldn’t work. I copied the v2fly v4 vless configuration to v5, and found that v5 vless can be used normally. I modified it according to the template given, and v5 Trojan can also run. configuration file
some instructions
|
Beta Was this translation helpful? Give feedback.
-
@aaro-n 请问有没有对应的 trojan 的客户端配置文件?谢谢 |
Beta Was this translation helpful? Give feedback.
-
问题
我正在使用
v2fly v4 + vless + ws +caddy v1
想要将服务端升级为v2fly v5 + trojan + ws +caddy v1
,目前已经可以通过docker compose 运行容器,但我不会配置trojan的服务端,尝试查询文档及搜索v2fly v5 trojan 模板,无法解决问题。配置文件
docker-compose.yml
Caddyfile caddy v1
config.json
v2fly 运行上述配置文件后提示
Beta Was this translation helpful? Give feedback.
All reactions