port-80
This commit is contained in:
parent
e32e4aade5
commit
82aee72cee
|
@ -30,6 +30,4 @@ RUN apt-get update && apt install -y openssl libssl-dev
|
||||||
|
|
||||||
COPY --from=build /presence/target/release/presence .
|
COPY --from=build /presence/target/release/presence .
|
||||||
|
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
CMD ["./presence"]
|
CMD ["./presence"]
|
||||||
|
|
|
@ -131,7 +131,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
.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))
|
||||||
})
|
})
|
||||||
.bind("127.0.0.1:8080")?
|
.bind("127.0.0.1")?
|
||||||
.run()
|
.run()
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user