debug: routing to acme only from nginx
This commit is contained in:
@@ -8,7 +8,6 @@ use tokio::sync::broadcast;
|
||||
use actix_web::error::{ErrorUnauthorized, ErrorInternalServerError as ServerError};
|
||||
use std::sync::{Arc, Mutex};
|
||||
use tokio::task::JoinHandle;
|
||||
use actix_files::Files;
|
||||
|
||||
|
||||
mod data;
|
||||
@@ -132,7 +131,6 @@ 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")?
|
||||
|
Reference in New Issue
Block a user