feat: ACME location in main too

This commit is contained in:
Stepan Vladovskiy 2023-10-12 09:35:15 -03:00
parent 123c8acee6
commit e74efc5aec
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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")?