match config { SpawnConfig::Https(_) => "https", _ => "http", } ); } Ok(tokio::spawn(async move { match config { SpawnConfig::Https(acceptor) => { axum_server::Server::bind(addr) .handle(handle) .acceptor(acceptor) .serve(router.into_make_service()) .await } SpawnConfig::Redirect(destination) => { axum_server::Server::bind(addr) .handle(handle) .serve( Router::new() .fallback(Self::redirect_http_to_https) .layer(Extension(destination)) .into_make_service(), ) .await } SpawnConfig::Http => { axum_server::Server::bind(addr) .handle(handle) .serve(router.into_make_service()) .await } } })) } fn acme_cache(acme_cache: Option<&PathBuf>, options: &Options) -> Result<PathBuf> {
Inscription number 44,989,399
Genesis block 819,069
File type text
File size 1 KB
Creation date Nov 30,2023 3:8 am