본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

gRPC-Gateway 플러그인 구성 참조

원문 보기 위키 갱신

gRPC-Gateway 플러그인 구성 참조 (gRPC-Gateway Plugin Configuration Reference)

이 문서는 Kong의 gRPC-Gateway 플러그인 설정을 위한 구성 참조예요. JSON 스키마를 통해 proto, consumer, route, service 등 주요 속성을 설명하고 있어요. 플러그인을 특정 조건에서만 활성화하거나 프로토콜을 제한하는 방법도 알 수 있답니다.

출처: 문서

본문

{
  "properties": {
    "config": {
      "properties": {
        "proto": {
          "description": "Describes the gRPC types and methods.",
          "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 protocols.",
      "items": {
        "description": "A string representing a protocol, such as HTTP or HTTPS.",
        "enum": [
          "grpc",
          "grpcs",
          "http",
          "https",
          "tcp",
          "tls",
          "tls_passthrough",
          "udp",
          "ws",
          "wss"
        ],
        "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)