feat(gateway): add websocket ingress rate limiting
This commit is contained in:
@@ -312,6 +312,13 @@ export function createGateway(deps: GatewayDeps): GatewayServer {
|
||||
authHttp: config.server.auth_http,
|
||||
lock: config.server.lock,
|
||||
maxRequestBodyBytes: config.server.max_request_body_bytes,
|
||||
wsRateLimit: {
|
||||
enabled: config.server.ws_rate_limit.enabled,
|
||||
capacity: config.server.ws_rate_limit.capacity,
|
||||
refillPerSec: config.server.ws_rate_limit.refill_per_sec,
|
||||
maxViolations: config.server.ws_rate_limit.max_violations,
|
||||
violationWindowMs: config.server.ws_rate_limit.violation_window_ms,
|
||||
},
|
||||
commandRegistry: deps.commandRegistry,
|
||||
intentRegistry: deps.intentRegistry,
|
||||
routingPolicy: deps.routingPolicy,
|
||||
|
||||
Reference in New Issue
Block a user