요청 크기 제한 플러그인 구성 레퍼런스
요청 크기 제한 플러그인 구성 레퍼런스 (Request Size Limiting Plugin Configuration Reference)
이 문서는 Kong의 Request Size Limiting 플러그인에서 설정할 수 있는 구성 옵션을 스키마 형태로 정리한 레퍼런스예요. allowed_payload_size, require_content_length, size_unit 같은 핵심 파라미터의 기본값과 의미를 확인할 수 있어요. consumer, service, route 단위로 플러그인 적용 범위를 지정하는 방법과 지원 프로토콜(grpc, grpcs, http, https)도 함께 다뤄요
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"allowed_payload_size": {
"default": 128,
"description": "Allowed request payload size in megabytes. Default is `128` megabytes (128000000 bytes).",
"type": "integer"
},
"require_content_length": {
"default": false,
"description": "Set to `true` to ensure a valid `Content-Length` header exists before reading the request body.",
"type": "boolean"
},
"size_unit": {
"default": "megabytes",
"description": "Size unit can be set either in `bytes`, `kilobytes`, or `megabytes` (default). This configuration is not available in versions prior to Kong Gateway 1.3 and Kong Gateway (OSS) 2.0.",
"enum": [
"bytes",
"kilobytes",
"megabytes"
],
"type": "string"
}
},
"type": "object"
},
"consumer": {
"additionalProperties": false,
"description": "If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"expressions": {
"additionalProperties": true,
"type": "object"
},
"protocols": {
"default": [
"grpc",
"grpcs",
"http",
"https"
],
"description": "A set of strings representing HTTP protocols.",
"items": {
"enum": [
"grpc",
"grpcs",
"http",
"https"
],
"type": "string"
},
"type": "array"
},
"route": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"service": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
}
}
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.