trojan_basic.yaml
使用前请修改地址、凭据、证书路径和其他部署相关的值。这是完整的源文件,但不保证未经修改即可在你的机器上运行。请阅读文件中的注释了解前置条件,然后对修改后的文件运行 shoes check。
# Basic Trojan server examples
# Simple Trojan server over TLS- address: "0.0.0.0:443" protocol: type: tls sni_targets: "trojan.example.com": cert: "cert.pem" key: "key.pem" protocol: type: trojan password: "trojan-secret-password"
# Trojan with Shadowsocks obfuscation- address: "0.0.0.0:8443" protocol: type: tls default_target: cert: "cert.pem" key: "key.pem" protocol: type: trojan password: "trojan-password" shadowsocks: cipher: aes-256-gcm password: "shadowsocks-password"
# Trojan over WebSocket- address: "0.0.0.0:443" protocol: type: tls sni_targets: "ws.example.com": cert: "cert.pem" key: "key.pem" protocol: type: websocket targets: - matching_path: "/trojan" matching_headers: User-Agent: "Mozilla/5.0" protocol: type: trojan password: "websocket-trojan-password"