aegis-api 0.3.7

Independent Aegis fleet control plane HTTP service.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[tokio::main]
async fn main() -> anyhow::Result<()> {
    arche_web::server::initialize()?;
    let config = arche_web::server::ServiceOptions::from_env()?.validate()?;
    let app = tokio::time::timeout(
        std::time::Duration::from_secs(120),
        aegis_api::ApplicationOptions::from_env()?
            .validate()?
            .connect(),
    )
    .await??;
    arche_web::server::serve(config, app).await
}