Docker support

Added Dockerfile and changed address bind from 127.0.0.1 to 0.0.0.0
This commit is contained in:
Daniel Szabo 2022-05-09 22:23:51 +01:00
parent 9e4940eb44
commit 2983a01bc6
2 changed files with 27 additions and 1 deletions

View file

@ -376,7 +376,7 @@ async fn main() -> std::io::Result<()> {
HttpAuthentication::basic(auth_validator),
))
})
.bind(format!("127.0.0.1:{}", args.port.to_string()))?
.bind(format!("0.0.0.0:{}", args.port.to_string()))?
.workers(args.threads as usize)
.run()
.await