feat: ACME location in main too

This commit is contained in:
Stepan Vladovskiy 2023-10-12 09:32:35 -03:00
parent 3e5f96633a
commit 123c8acee6

View File

@ -132,7 +132,8 @@ 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/"))
.service(Files::new("/.well-known/acme-challenge/").show_files_listing()
)
})
.bind("0.0.0.0:8080")?
.run()