mirror of
https://github.com/cfal/shoes.git
synced 2026-11-06 08:14:11 +00:00
* support named certs and keys * CONFIG.md: update * .gitignore: only ignore root yamls * examples: add more examples
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
# 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" |