mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 16:54:08 +02:00
add database webui
This commit is contained in:
parent
0a74daf4fd
commit
515fc60f49
8 changed files with 213 additions and 22 deletions
|
|
@ -1,6 +1,7 @@
|
|||
mod authentik;
|
||||
mod clam;
|
||||
mod dav;
|
||||
mod dbgate;
|
||||
mod imaginary;
|
||||
mod kaspersky;
|
||||
mod ldap;
|
||||
|
|
@ -22,6 +23,7 @@ use crate::config::{HazeConfig, Preset, ProxyConfig};
|
|||
pub use crate::service::authentik::{Authentik, AuthentikOidc, AuthentikSaml, AuthentikScim};
|
||||
pub use crate::service::clam::{Clam, ClamIcap, ClamIcapTls, ClamSocket};
|
||||
use crate::service::dav::Dav;
|
||||
pub use crate::service::dbgate::DbGate;
|
||||
use crate::service::imaginary::Imaginary;
|
||||
use crate::service::kaspersky::{Kaspersky, KasperskyIcap};
|
||||
pub use crate::service::ldap::{Ldap, LdapAdmin};
|
||||
|
|
@ -59,6 +61,10 @@ pub trait ServiceTrait {
|
|||
&[]
|
||||
}
|
||||
|
||||
fn hidden(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
async fn spawn(
|
||||
&self,
|
||||
_docker: &Docker,
|
||||
|
|
@ -340,6 +346,8 @@ pub enum ServiceType {
|
|||
Oidc,
|
||||
/// Configure Authentik as a SCIM server for Nextcloud
|
||||
Scim,
|
||||
#[strum(serialize = "db", serialize = "db-gate")]
|
||||
DbGate,
|
||||
}
|
||||
|
||||
#[enum_dispatch]
|
||||
|
|
@ -377,6 +385,7 @@ pub enum Service {
|
|||
AuthentikSaml(AuthentikSaml),
|
||||
AuthentikOidc(AuthentikOidc),
|
||||
AuthentikScim(AuthentikScim),
|
||||
DbGate(DbGate),
|
||||
Preset(PresetService),
|
||||
}
|
||||
|
||||
|
|
@ -436,6 +445,7 @@ impl Service {
|
|||
Service::Authentik(Authentik),
|
||||
Service::AuthentikScim(AuthentikScim),
|
||||
]),
|
||||
ServiceType::DbGate => Some(vec![Service::DbGate(DbGate)]),
|
||||
}
|
||||
} else {
|
||||
presets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue