From 82aee72cee4caee86f30c3c659a35da9509d7a76 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 11 Oct 2023 23:54:07 +0300 Subject: [PATCH] port-80 --- Dockerfile | 2 -- src/main.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b0316de..3dcd06b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,4 @@ RUN apt-get update && apt install -y openssl libssl-dev COPY --from=build /presence/target/release/presence . -EXPOSE 8080 - CMD ["./presence"] diff --git a/src/main.rs b/src/main.rs index db430c3..3fac7f6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -131,7 +131,7 @@ async fn main() -> std::io::Result<()> { .app_data(web::Data::new(state.clone())) .route("/", web::get().to(connect_handler)) }) - .bind("127.0.0.1:8080")? + .bind("127.0.0.1")? .run() .await }