This commit is contained in:
Mateusz Gruszczyński committed 2026-11-23 11:07:13 +01:00
1 parent 27b640a0df
commit aa27866531
46 files changed
+3368 -189

No files matched your search

+7
View File
@@ -244,6 +244,8 @@ pub struct CompiledLocationRedirect {
#[derive(Debug, Clone)]
pub struct CompiledRoute {
/// Request conditions besides the path (all must hold); `None` for plain locations.
pub conditions: Option<Arc<crate::vhost::CompiledConditions>>,
pub backend_id: Option<String>,
pub bindings: Vec<crate::vhost::Listener>,
pub frontend: Option<Arc<CompiledFrontend>>,
@@ -272,6 +274,11 @@ pub struct CompiledRoute {
}
#[derive(Debug)]
pub struct CompiledFrontend {
/// Some enabled location has request conditions: the route is selected again
/// with the final client address (and country) before forwarding.
pub conditional_routes: bool,
/// Some location condition tests the client country.
pub route_conditions_country: bool,
pub websockets: bool,
pub websocket_legacy_support: bool,
pub websocket_rfc8441: bool,