feat: add expose and listen on 8080

This commit is contained in:
Stepan Vladovskiy 2023-10-12 08:53:28 -03:00
parent b3a4992936
commit 040f1ed189
2 changed files with 3 additions and 1 deletions

View File

@ -30,4 +30,6 @@ RUN apt-get update && apt install -y openssl libssl-dev
COPY --from=build /presence/target/release/presence .
EXPOSE 8080
CMD ["./presence"]

View File

@ -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:80")?
.bind("127.0.0.1:8080")?
.run()
.await
}