You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wormhole-server/configs/server.yaml

86 lines
1.5 KiB

# Wormhole SOCKS5 Server Configuration
serviceType: server
proxy:
address: 0.0.0.0
port: 1080
auth:
username: admin
2 weeks ago
password: secure123
methods:
- password
timeout: 30s
maxConns: 5000
logLevel: info
healthCheck:
enabled: true
address: 127.0.0.1
port: 8090
# Optimization Features (将在迁移中实现)
optimizedServer:
enabled: true
maxIdleTime: 5m
bufferSize: 65536
logConnections: true
2 weeks ago
# DNS Caching (暂时禁用,避免端口冲突)
dnsCache:
2 weeks ago
enabled: false
maxSize: 10000
ttl: 10m
# Rate Limiting
rateLimit:
enabled: true
requestsPerSecond: 100
2 weeks ago
burstSize: 200
perIPRequestsPerSec: 10
perIPBurstSize: 20
cleanupInterval: 5m
# Connection Pool
connectionPool:
enabled: true
maxSize: 1000
maxLifetime: 30m
maxIdle: 5m
initialSize: 0
# Memory Optimization
memory:
enabled: true
bufferSizes: [512, 1024, 2048, 4096, 8192, 16384, 32768, 65536]
monitorInterval: 30s
enableAutoGC: true
heapAllocThresholdMB: 100
heapSysThresholdMB: 200
forceGCThresholdMB: 500
# Transparent Proxy (requires root permissions)
transparent:
enabled: false
transparentPort: 8888
dnsPort: 15353
bypassIPs:
- "127.0.0.1"
- "192.168.1.0/24"
bypassDomains:
- "localhost"
- "*.local"
# Access Control
accessControl:
allowedIPs:
- "127.0.0.1"
- "192.168.1.0/24"
2 weeks ago
- "10.0.0.0/8"
# Performance Monitoring
metrics:
enabled: true
interval: 5m