mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
parent
4ab23610a2
commit
3b4014b5e4
9 changed files with 83 additions and 41 deletions
|
|
@ -207,6 +207,19 @@ impl ServiceTrait for RedisTls {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Eq, PartialEq, Debug)]
|
||||
pub struct FrankenPhp;
|
||||
|
||||
impl ServiceTrait for FrankenPhp {
|
||||
fn name(&self) -> &str {
|
||||
"franken-php"
|
||||
}
|
||||
|
||||
fn env(&self) -> &[&str] {
|
||||
&["FRANKENPHP=1"]
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Copy, Clone, Debug, PartialEq, EnumString, EnumMessage, EnumIter, IntoStaticStr, Display,
|
||||
)]
|
||||
|
|
@ -281,6 +294,8 @@ pub enum ServiceType {
|
|||
Redis,
|
||||
/// External redis instance with TLS
|
||||
RedisTls,
|
||||
/// Use FrankenPHP instead of PHP-FPM
|
||||
FrankenPhp,
|
||||
}
|
||||
|
||||
#[enum_dispatch]
|
||||
|
|
@ -310,6 +325,7 @@ pub enum Service {
|
|||
Mail(Mail),
|
||||
Redis(Redis),
|
||||
RedisTls(RedisTls),
|
||||
FrankenPhp(FrankenPhp),
|
||||
Preset(PresetService),
|
||||
}
|
||||
|
||||
|
|
@ -352,6 +368,7 @@ impl Service {
|
|||
ServiceType::Mail => Some(vec![Service::Mail(Mail)]),
|
||||
ServiceType::Redis => Some(vec![Service::Redis(Redis)]),
|
||||
ServiceType::RedisTls => Some(vec![Service::RedisTls(RedisTls)]),
|
||||
ServiceType::FrankenPhp => Some(vec![Service::FrankenPhp(FrankenPhp)]),
|
||||
}
|
||||
} else {
|
||||
presets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue