feat: ACME location in main too
This commit is contained in:
parent
123c8acee6
commit
e74efc5aec
|
@ -13,7 +13,7 @@ serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
reqwest = { version = "0.11", features = ["json"] }
|
reqwest = { version = "0.11", features = ["json"] }
|
||||||
futures = "0.3.28"
|
futures = "0.3.28"
|
||||||
actix-files = "0.3"
|
actix-files = "0.6"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "presence"
|
name = "presence"
|
||||||
|
|
|
@ -132,7 +132,7 @@ 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/").show_files_listing()
|
.service(Files::new("/.well-known/acme-challenge/", "/var/www/letsencrypt/.well-known/acme-challenge/")
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.bind("0.0.0.0:8080")?
|
.bind("0.0.0.0:8080")?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user