pub struct ProxyConfig {
pub upstreams: Vec<UpstreamConfig>,
pub routes: Vec<RouteConfig>,
pub tcp_proxies: Vec<TcpProxyConfig>,
pub udp_proxies: Vec<UdpProxyConfig>,
pub ws_proxies: Vec<WsProxyConfig>,
pub global_middleware: MiddlewareConfig,
}Fields§
§upstreams: Vec<UpstreamConfig>§routes: Vec<RouteConfig>§tcp_proxies: Vec<TcpProxyConfig>§udp_proxies: Vec<UdpProxyConfig>§ws_proxies: Vec<WsProxyConfig>§global_middleware: MiddlewareConfigImplementations§
Source§impl ProxyConfig
impl ProxyConfig
Sourcepub fn validate(&self, report: &mut ConfigReport)
pub fn validate(&self, report: &mut ConfigReport)
Check the configuration for mistakes the parser lets through. Reads the auth secrets’ environment variables and htpasswd files, so run it in the environment the server will run in.
Source§impl ProxyConfig
impl ProxyConfig
Sourcepub fn is_proxy_mode() -> bool
pub fn is_proxy_mode() -> bool
Returns true if rws.config.toml (or RWS_CONFIG_FILE) contains
[[route]] or [[upstream]] sections, meaning config-driven mode
should be used.
Trait Implementations§
Source§impl Clone for ProxyConfig
impl Clone for ProxyConfig
Auto Trait Implementations§
impl Freeze for ProxyConfig
impl RefUnwindSafe for ProxyConfig
impl Send for ProxyConfig
impl Sync for ProxyConfig
impl Unpin for ProxyConfig
impl UnsafeUnpin for ProxyConfig
impl UnwindSafe for ProxyConfig
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