Struct bulwark_config::Service
source · pub struct Service {
pub port: u16,
pub admin_port: u16,
pub admin_enabled: bool,
pub remote_state_uri: Option<String>,
pub remote_state_pool_size: u32,
pub proxy_hops: u8,
}
Expand description
Configuration for the services being launched.
Fields§
§port: u16
The port for the primary service.
admin_port: u16
The port for the admin service and health checks.
admin_enabled: bool
True if the admin service is enabled, false otherwise.
remote_state_uri: Option<String>
The URI for the external Redis state store.
remote_state_pool_size: u32
The size of the remote state connection pool.
proxy_hops: u8
The number of trusted proxy hops expected to be exterior to Bulwark.
This number does not include Bulwark or the proxy hosting it in the proxy hop count. Zero implies that
there are no other proxies exterior to Bulwark. This is used to ensure the Forwarded
and X-Forwarded-For
headers are not spoofed. If this is set incorrectly, the client IP reported to plugins will be incorrect.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
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