このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
構成
このプラグインはDBレスモードに対応しています。
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
- 
    
name or plugin
string requiredプラグイン名。この場合は
grpc-web。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
nameです。 - Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドは
pluginです。 
 - Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
 - 
      
service.name or service.id
stringプラグインが対象とするサービス名または ID。最上位の
/pluginsエンドポイント. からプラグインをサービスに追加する場合は、これらのパラメータのいずれかを設定してください/services/{serviceName|Id}/pluginsを使用する場合は必要ありません。 - 
      
route.name or route.id
stringプラグインがターゲットとするルート名または ID。最上位の
/pluginsエンドポイント. を通るルートにプラグインを追加する場合は、これらのパラメータのいずれかを設定してください/routes/{routeName|Id}/pluginsを使用する場合は必要ありません。 - 
      
consumer.name or consumer.id
stringプラグインがターゲットとするコンシューマーの名前または ID。 最上位の
/pluginsエンドポイント. からコンシューマーにプラグインを追加する場合は、これらのパラメーターのいずれかを設定してください/consumers/{consumerName|Id}/pluginsを使用する場合は必要ありません。 - 
    
enabled
boolean default:trueこのプラグインが適用されるかどうか。
 - 
  
config
record required- 
  
proto
stringIf present, describes the gRPC types and methods. Required to support payload transcoding. When absent, the web client must use application/grpw-web+proto content.
 
- 
  
pass_stripped_path
booleanIf set to
truecauses the plugin to pass the stripped request path to the upstream gRPC service (see thestrip_pathRoute attribute). 
- 
  
allow_origin_header
string default:*The value of the
Access-Control-Allow-Originheader in the response to the gRPC-Web client. The default of*is appropriate for requests without credentials. In other cases, specify the allowed origins of the client code. For more information, see MDN Web Docs - Access-Control-Allow-Origin. 
 -