Files
shoes/examples/mixed.yaml
cfal 5fc319a13d Add indexed routing predicates and local rule sources (#201)
Compile routing rules into shared indexes while preserving ordered policy evaluation and DNS decisions. Add typed predicates and bounded local SRS, sing-box JSON, Mihomo YAML/text/MRS, and GeoSite/GeoIP DAT sources through named rule groups or inline masks, with format detection, source caching, pre-activation compilation, and source-aware reloads. Include configuration examples, regression coverage, benchmark tooling, and dependency notices.
2026-10-20 22:11:01 -04:00

59 lines
1.4 KiB
YAML

# Mixed HTTP+SOCKS5 server examples
# Auto-detects protocol from first byte - useful for clients that support both
# Basic mixed server (no authentication)
- address: "0.0.0.0:7890"
protocol:
type: mixed
# Mixed server with authentication
- address: "0.0.0.0:7891"
protocol:
type: mixed
username: "myuser"
password: "mypassword"
# Mixed server with UDP disabled
- address: "0.0.0.0:7892"
protocol:
type: mixed
udp_enabled: false
# Mixed server with custom routing rules
- address: "0.0.0.0:7893"
protocol:
type: mixed
username: "admin"
password: "secure123"
udp_enabled: true
rules:
# Direct connection for local networks
- masks: ["192.168.0.0/16", "10.0.0.0/8", "172.16.0.0/12"]
action: allow
client_chain:
protocol:
type: direct
# Block ad domains
- masks: { subdomains: ["doubleclick.net", "googlesyndication.com"] }
action: block
# Route everything else through upstream
- masks: "0.0.0.0/0"
action: allow
client_chain:
address: "upstream.proxy.com:1080"
protocol:
type: socks
# Mixed server over TLS (for secure local proxy)
- address: "0.0.0.0:7894"
protocol:
type: tls
tls_targets:
"proxy.local":
cert: "cert.pem"
key: "key.pem"
protocol:
type: mixed
username: "secure_user"
password: "secure_pass"