리다이렉트 플러그인 설정 레퍼런스
리다이렉트 플러그인 설정 레퍼런스 (Redirect Plugin Configuration Reference)
이 문서는 Kong의 Redirect 플러그인에서 설정할 수 있는 모든 파라미터를 스키마 형태로 정리한 참조 자료예요. 리다이렉트 대상 URL을 지정하는 location, 응답 상태 코드를 정하는 status_code, 원래 요청 경로와 쿼리 문자열을 유지하는 keep_incoming_path 같은 핵심 옵션의 기본값과 허용 범위를 한눈에 확인할 수 있어요. 또한 service, route, consumer, consumer_group 항목으로 플러그인이 적용될 대상을 세부적으로 제한하는 방법도 함께 다루고 있어요
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"keep_incoming_path": {
"default": false,
"description": "Use the incoming request's path and query string in the redirect URL",
"type": "boolean"
},
"location": {
"description": "The URL to redirect to",
"type": "string"
},
"status_code": {
"default": 301,
"description": "The response code to send. Must be an integer between 100 and 599.",
"maximum": 599,
"minimum": 100,
"type": "integer"
}
},
"required": [
"location"
],
"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"
},
"consumer_group": {
"additionalProperties": false,
"description": "If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups",
"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"
}
},
"required": [
"config"
]
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.