# 仅提供本机 HTTP/CONNECT 网关。 version: 1 security: {requireProtectionOnPublicListen: true} gateway: enabled: true listen: 127.0.0.1:8080 auth: {mode: none} limits: {maxConcurrentConnections: 20000} retry: {maxAttempts: 2, retryMethods: [GET, HEAD]} destinationPolicy: denyPrivateNetworks: true denyLoopback: true denyLinkLocal: true routing: - name: gateway enabled: true purpose: gateway match: {hostRegex: '.*'} upstreams: [provider-a] strategy: {type: leastConnections} onUnavailable: {action: reject} upstreams: provider-a: enabled: true exposure: [gateway] provider: {billingMode: subscription, protocols: [http, https]} api: {url: https://provider-a.example/proxies, method: GET, auth: {type: none}, template: '{{.}}'} proxyAuth: {type: response} pool: {maxSize: 2000} capacity: {maxConcurrencyPerProxy: 20} lifecycle: {ttl: 5m, allocationSafetyMargin: 30s} fetch: {requestInterval: 1s, timeout: 3s, maxAttempts: 3, maxInFlight: 1} check: {interval: 30s, jitter: 20, maxInFlight: 100, timeout: 2s, maxAttempts: 2, maxConsecutiveFailures: 3}