diff --git a/Cargo.toml b/Cargo.toml index 22fd689..29ed16a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,6 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" reqwest = { version = "0.11", features = ["json"] } futures = "0.3.28" -actix-files = "0.6" [[bin]] name = "presence" diff --git a/src/main.rs b/src/main.rs index 2c79a1b..0e6c476 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,6 @@ use tokio::sync::broadcast; use actix_web::error::{ErrorUnauthorized, ErrorInternalServerError as ServerError}; use std::sync::{Arc, Mutex}; use tokio::task::JoinHandle; -use actix_files::Files; mod data; @@ -132,7 +131,6 @@ 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/", "/var/www/letsencrypt/.well-known/acme-challenge/") ) }) .bind("0.0.0.0:8080")?