pub struct ReverseProxyConfig<'a> {
pub internal_networks: Cow<'a, [IpNetwork]>,
pub ip_header: Cow<'a, str>,
pub trusted_proxies: Cow<'a, [IpNetwork]>,
}
Fields§
§internal_networks: Cow<'a, [IpNetwork]>
List of networks that bypass the IP address extraction from the configured IP header. These are typically internal networks and other services that directly connect to the server without going through the reverse proxy.
ip_header: Cow<'a, str>
Request header to get the ip address from.
trusted_proxies: Cow<'a, [IpNetwork]>
List of trusted proxy networks that the server accepts connections from. These are typically the networks of the reverse proxies in front of the server, e.g. Cloudflare, etc.
Auto Trait Implementations§
impl<'a> Freeze for ReverseProxyConfig<'a>
impl<'a> RefUnwindSafe for ReverseProxyConfig<'a>
impl<'a> Send for ReverseProxyConfig<'a>
impl<'a> Sync for ReverseProxyConfig<'a>
impl<'a> Unpin for ReverseProxyConfig<'a>
impl<'a> UnwindSafe for ReverseProxyConfig<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request