v0.34.15
This commit is contained in:
1 parent
62b7574553
commit
e364392659
47 files changed
+2164
-257
No files matched your search
+1
-6
@@ -70,8 +70,6 @@ pub struct Config {
|
||||
pub vhosts: Vec<crate::vhost::Vhost>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub host_policies: Vec<HostPolicy>,
|
||||
// Preserve old 0.34.13 and earlier config/backup data until compilation migrates it.
|
||||
// Migration happens in compile_with_active, before validation and persistence.
|
||||
#[serde(
|
||||
default,
|
||||
rename = "user_agent_blocking",
|
||||
@@ -85,12 +83,9 @@ pub struct Config {
|
||||
#[serde(default, skip_serializing_if = "HeaderRules::is_empty")]
|
||||
pub headers: HeaderRules,
|
||||
}
|
||||
/// Global HTTP public-listener security. Disabled defaults preserve older configurations.
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
|
||||
#[serde(default, deny_unknown_fields)]
|
||||
pub struct GlobalSecurity {
|
||||
// None distinguishes omitted legacy input from an explicitly configured empty policy.
|
||||
// Successful compilation always normalizes this to Some(...).
|
||||
pub user_agent_blocking: Option<crate::user_agent::Policy>,
|
||||
pub country_access: crate::rate_limit::CountryAccess,
|
||||
pub acl: Option<Acl>,
|
||||
@@ -308,7 +303,7 @@ pub struct CompiledFrontend {
|
||||
pub metrics: Arc<crate::metrics::VhostMetrics>,
|
||||
pub server_header: crate::settings::ServerHeader,
|
||||
pub diagnostic_headers: crate::settings::DiagnosticHeaders,
|
||||
pub tinyauth: Option<crate::tinyauth::Compiled>,
|
||||
pub auth_provider: Option<crate::auth_provider::Compiled>,
|
||||
pub id: String,
|
||||
pub bindings: Vec<crate::vhost::Listener>,
|
||||
pub acl_profile_id: Option<String>,
|
||||
|
||||
Reference in new issue
Block a user