feat: ACME location in main too

This commit is contained in:
Stepan Vladovskiy 2023-10-12 09:24:20 -03:00
parent 7aba5a6491
commit 8e48b49a3f

View File

@ -130,6 +130,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/", "/var/www/letsencrypt/.well-known/acme-challenge/"))
})
.bind("0.0.0.0:8080")?
.run()