Interface TrustedProxyConfig

Hierarchy

  • TrustedProxyConfig

Methods

  • MarshalJSON implements the [json.Marshaler] interface.

    Returns string | number[]

  • Validate makes RateLimitRule validatable by implementing [validation.Validatable] interface.

    Returns void

Properties

headers: string[]

Headers is a list of explicit trusted header(s) to check.

useLeftmostIP: boolean

UseLeftmostIP specifies to use the left-mostish IP from the trusted headers.

Note that this could be insecure when used with X-Forward-For header because some proxies like AWS ELB allow users to prepend their own header value before appending the trusted ones.

Generated using TypeDoc