少于1分钟
https://nginx.org/en/docs/stream/ngx_stream_proxy_protocol_vendor_module.html
The ngx_stream_proxy_protocol_vendor_module
module (1.23.3) allows obtaining additional information about a connection in cloud platforms from application-specific TLVs of the PROXY protocol header.
Supported cloud platforms:
The PROXY protocol must be previously enabled by setting the proxy_protocol
parameter in the listen directive.
This module is available as part of our commercial subscription.
server {
listen 12345 proxy_protocol;
return $proxy_protocol_tlv_gcp_conn_id;
}
$proxy_protocol_tlv_aws_vpce_id
TLV value from the PROXY Protocol header representing the ID of AWS VPC endpoint
$proxy_protocol_tlv_azure_pel_id
TLV value from the PROXY Protocol header representing the LinkID of Azure private endpoint
$proxy_protocol_tlv_gcp_conn_id
TLV value from the PROXY Protocol header representing Google Cloud PSC connection ID