mirror of
https://codeberg.org/icewind/haze.git
synced 2026-08-02 12:14:46 +02:00
improve websocket proxying
This commit is contained in:
parent
b977cd9dfa
commit
ad999702aa
6 changed files with 164 additions and 43 deletions
|
|
@ -14,6 +14,7 @@ mod sftp;
|
|||
mod redis;
|
||||
mod sharded;
|
||||
mod smb;
|
||||
mod webhook;
|
||||
|
||||
use crate::cloud::CloudOptions;
|
||||
use crate::config::{HazeConfig, Preset, ProxyConfig};
|
||||
|
|
@ -32,6 +33,7 @@ use crate::service::redis::Redis;
|
|||
use crate::service::sftp::Sftp;
|
||||
use crate::service::sharded::{Sharding, ShardingMigrate, ShardingMigrateUnset, SingleShard};
|
||||
use crate::service::smb::Smb;
|
||||
use crate::service::webhook::Webhook;
|
||||
use bollard::models::ContainerState;
|
||||
use bollard::Docker;
|
||||
use enum_dispatch::enum_dispatch;
|
||||
|
|
@ -296,6 +298,8 @@ pub enum ServiceType {
|
|||
RedisTls,
|
||||
/// Use FrankenPHP instead of PHP-FPM
|
||||
FrankenPhp,
|
||||
/// Webhook test listener
|
||||
Webhook,
|
||||
}
|
||||
|
||||
#[enum_dispatch]
|
||||
|
|
@ -326,6 +330,7 @@ pub enum Service {
|
|||
Redis(Redis),
|
||||
RedisTls(RedisTls),
|
||||
FrankenPhp(FrankenPhp),
|
||||
Webhook(Webhook),
|
||||
Preset(PresetService),
|
||||
}
|
||||
|
||||
|
|
@ -369,6 +374,7 @@ impl Service {
|
|||
ServiceType::Redis => Some(vec![Service::Redis(Redis)]),
|
||||
ServiceType::RedisTls => Some(vec![Service::RedisTls(RedisTls)]),
|
||||
ServiceType::FrankenPhp => Some(vec![Service::FrankenPhp(FrankenPhp)]),
|
||||
ServiceType::Webhook => Some(vec![Service::Webhook(Webhook)]),
|
||||
}
|
||||
} else {
|
||||
presets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue