feat: ACME location in main too
This commit is contained in:
parent
3e5f96633a
commit
123c8acee6
|
@ -132,7 +132,8 @@ async fn main() -> std::io::Result<()> {
|
||||||
.wrap(Logger::default())
|
.wrap(Logger::default())
|
||||||
.app_data(web::Data::new(state.clone()))
|
.app_data(web::Data::new(state.clone()))
|
||||||
.route("/", web::get().to(connect_handler))
|
.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")?
|
.bind("0.0.0.0:8080")?
|
||||||
.run()
|
.run()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user