This commit is contained in:
Mateusz Gruszczyński committed 2026-10-27 13:22:43 +01:00
1 parent e364392659
commit f27fbf6a30
28 files changed
+2000 -60

No files matched your search

+4
View File
@@ -354,6 +354,10 @@ pub struct Vhost {
#[serde(default)]
pub authentik: crate::authentik::Settings,
#[serde(default)]
pub oidc: crate::oidc::Settings,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub authentication: Option<crate::auth_provider::Choice>,
#[serde(default)]
pub certificate_id: Option<String>,
#[serde(default)]
pub allow_certificate_mismatch: bool,
+13
View File
@@ -244,12 +244,25 @@ impl Vhost {
}
self.basic_auth.compile()?;
crate::auth_provider::Selection {
choice: self.authentication,
basic_enabled: self.basic_auth.enabled,
tinyauth: &self.tinyauth,
authelia: &self.authelia,
authentik: &self.authentik,
oidc: &self.oidc,
}
.validate()?;
if self.oidc.enabled {
let redirect = url::Url::parse(&self.oidc.redirect_url)?;
ensure!(
redirect.host_str().is_some_and(|host| self
.frontend
.hosts
.iter()
.any(|name| name == host)),
"OIDC callback host must be an exact Vhost hostname"
);
}
self.pages.validate()?;
self.transform
.resolve(&crate::transform::Settings::default())?;