This commit is contained in:
Mateusz Gruszczyński committed 2026-10-10 20:56:36 +02:00
1 parent f213d853e2
commit 76b8bb7ee2
78 files changed
+7750 -5204

No files matched your search

+16
View File
@@ -172,6 +172,20 @@ impl Http2Connections {
}
}
/// Allowed encodings for the authenticated panel document. Codec preference is
/// zstd, then Brotli, then gzip for equal Accept-Encoding quality. These
/// settings are independent from downstream proxy response compression.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(default, deny_unknown_fields)]
pub struct PanelCompression {
pub zstd: bool,
pub br: bool,
pub gzip: bool,
}
impl Default for PanelCompression {
fn default() -> Self { Self { zstd: true, br: true, gzip: true } }
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(default, deny_unknown_fields)]
pub struct Administration {
@@ -185,6 +199,7 @@ pub struct Administration {
pub allowed_hosts: Vec<String>,
/// Absolute browser-session lifetime. Existing sessions are bounded by the current value.
pub session_days: u16,
pub panel_compression: PanelCompression,
}
impl Default for Administration {
fn default() -> Self {
@@ -194,6 +209,7 @@ impl Default for Administration {
certificate_id: None,
allowed_hosts: Vec::new(),
session_days: 30,
panel_compression: PanelCompression::default(),
}
}
}