ngx_stream_proxy_protocol_vendor_module 模块
| 配置示例 嵌入式变量 |
ngx_stream_proxy_protocol_vendor_module 模块(1.23.3)允许从 PROXY protocol 头部中特定于应用的 TLV 获取云平台连接的附加信息。
支持的云平台
- Amazon Web Services
- Google Cloud Platform
- Microsoft Azure
必须首先在 listen 指令中设置 proxy_protocol 参数来启用 PROXY protocol。
该模块作为我们的商业订阅的一部分提供。
配置示例
server {
listen 12345 proxy_protocol;
return $proxy_protocol_tlv_gcp_conn_id;
}
嵌入式变量
$proxy_protocol_tlv_aws_vpce_id- 来自 PROXY Protocol 头部,表示 AWS VPC endpoint ID 的 TLV 值
$proxy_protocol_tlv_azure_pel_id- 来自 PROXY Protocol 头部,表示 Azure 私有 endpoint LinkID 的 TLV 值
$proxy_protocol_tlv_gcp_conn_id- 来自 PROXY Protocol 头部,表示 Google Cloud PSC 连接 ID 的 TLV 值