# Wormhole SOCKS5 Server Configuration serviceType: server proxy: address: 0.0.0.0 port: 1080 auth: username: admin 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 # DNS Caching (暂时禁用,避免端口冲突) dnsCache: enabled: false maxSize: 10000 ttl: 10m # Rate Limiting rateLimit: enabled: true requestsPerSecond: 100 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" - "10.0.0.0/8" # Performance Monitoring metrics: enabled: true interval: 5m