Make listening port configurable (#95)

Co-authored-by: 3nprob <3nprob@3nprob>
This commit is contained in:
3nprob 2021-08-14 10:42:55 +00:00 committed by GitHub
parent b28356d0ed
commit aed1da4aae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,7 +279,7 @@ public class ServerLauncher extends MultithreadedHttpServerLauncher {
Config config() {
return Config.create()
.with("http.listenAddresses",
Config.ofValue(ofInetSocketAddress(), new InetSocketAddress(PORT)))
Config.ofValue(ofInetSocketAddress(), new InetSocketAddress(Constants.PORT)))
.with("workers", Constants.HTTP_WORKERS);
}
};