fix(gateway): enforce request body size limits
This commit is contained in:
@@ -36,6 +36,8 @@ const serverSchema = z.object({
|
||||
auth_http: z.boolean().default(true),
|
||||
/** Single-client gateway lock. When true, only one WebSocket client can be connected at a time. */
|
||||
lock: z.boolean().default(false),
|
||||
/** Maximum size (bytes) for inbound HTTP request bodies (webhooks/Gmail push). */
|
||||
max_request_body_bytes: z.number().min(1024).max(10 * 1024 * 1024).default(1_048_576),
|
||||
});
|
||||
|
||||
/** All supported model provider identifiers. Used by the config schema and TUI autocompletion. */
|
||||
|
||||
Reference in New Issue
Block a user