Skip to main content

start_server

Function start_server 

Source
pub async fn start_server(
    addr: SocketAddr,
    config: Arc<Config>,
    client: Option<Arc<AcmeClient>>,
    storage: Option<Arc<dyn StorageBackend>>,
    webhook_manager: Arc<WebhookManager>,
    scheduler: Option<Arc<dyn RenewalScheduler>>,
) -> Result<()>
Expand description

Starts the REST API server on the specified address.

This function initializes the router, applies middleware (like API key auth), and starts the Axum server loop.