From e74efc5aec97518806636df4caf4e3d3ac3ca93f Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Thu, 12 Oct 2023 09:35:15 -0300 Subject: [PATCH] feat: ACME location in main too --- Cargo.toml | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 87b3494..22fd689 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" reqwest = { version = "0.11", features = ["json"] } futures = "0.3.28" -actix-files = "0.3" +actix-files = "0.6" [[bin]] name = "presence" diff --git a/src/main.rs b/src/main.rs index 315fd85..2c79a1b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -132,7 +132,7 @@ async fn main() -> std::io::Result<()> { .wrap(Logger::default()) .app_data(web::Data::new(state.clone())) .route("/", web::get().to(connect_handler)) - .service(Files::new("/.well-known/acme-challenge/").show_files_listing() + .service(Files::new("/.well-known/acme-challenge/", "/var/www/letsencrypt/.well-known/acme-challenge/") ) }) .bind("0.0.0.0:8080")?