mirror of
https://github.com/cfal/shoes.git
synced 2026-11-06 08:14:11 +00:00
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.
59 lines
1.4 KiB
YAML
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"
|