* feat: email triggers v0 * update docker compose to nginx with tcp reverse proxy + move smtp to private * fix: open source build * test: update ee ref for testing * feat: use caddy with layer4 * fix: nit * feat: configurable email domain * fix: nit * fix: nit * fix: get l4 from main * fix: default email domain to mail.domain * update ee ref
18 lines
490 B
Rust
18 lines
490 B
Rust
use crate::{db::DB, users::AuthCache};
|
|
use std::{net::SocketAddr, sync::Arc};
|
|
use windmill_common::db::UserDB;
|
|
|
|
pub struct SmtpServer {
|
|
pub auth_cache: Arc<AuthCache>,
|
|
pub db: DB,
|
|
pub user_db: UserDB,
|
|
pub rsmq: Option<rsmq_async::MultiplexedRsmq>,
|
|
pub base_internal_url: String,
|
|
}
|
|
|
|
impl SmtpServer {
|
|
pub async fn start_listener_thread(self: Arc<Self>, _addr: SocketAddr) -> anyhow::Result<()> {
|
|
Err(anyhow::anyhow!("Implementation not open source"))
|
|
}
|
|
}
|