Proxy 通訊協定 (proto)

config.core.v3.ProxyProtocolPassThroughTLVs

[config.core.v3.ProxyProtocolPassThroughTLVs proto]

{
  "match_type": ...,
  "tlv_type": []
}
match_type

(config.core.v3.ProxyProtocolPassThroughTLVs.PassTLVsMatchType) 傳遞 TLV 的策略。預設為 INCLUDE_ALL。如果設定為 INCLUDE_ALL,則無論 tlv_type 欄位為何,所有 TLV 都會傳遞。

tlv_type

(repeated uint32) 根據 match_type 套用的 TLV 類型。TLV 類型在 Proxy 通訊協定中定義為 uint8_t。詳情請參閱規格

列舉 config.core.v3.ProxyProtocolPassThroughTLVs.PassTLVsMatchType

[config.core.v3.ProxyProtocolPassThroughTLVs.PassTLVsMatchType proto]

INCLUDE_ALL

(預設) 傳遞所有 TLV。

INCLUDE

傳遞 tlv_type 中定義的特定 TLV。

config.core.v3.ProxyProtocolConfig

[config.core.v3.ProxyProtocolConfig proto]

{
  "version": ...,
  "pass_through_tlvs": {...}
}
version

(config.core.v3.ProxyProtocolConfig.Version) 要使用的 PROXY 通訊協定版本。詳情請參閱https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt

pass_through_tlvs

(config.core.v3.ProxyProtocolPassThroughTLVs) 此組態控制如果它是 Proxy Protocol V2 標頭,哪些 TLV 可以傳遞到上游。如果此欄位沒有設定,則不會傳遞任何 TLV。

列舉 config.core.v3.ProxyProtocolConfig.Version

[config.core.v3.ProxyProtocolConfig.Version proto]

V1

(預設) PROXY 通訊協定版本 1。人類可讀的格式。

V2

PROXY 通訊協定版本 2。二進位格式。