Skip to content

Commit

Permalink
read jetty port from config
Browse files Browse the repository at this point in the history
  • Loading branch information
joestr committed Apr 23, 2020
1 parent 991636a commit 5865f73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/at/joestr/acronis_http_serve/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public static void main(String[] args) throws Exception {
.connectTimeout(Duration.ofSeconds(5))
.build();

int port = 8081;
int port = Integer.parseInt(
INSTANCE.config.getProperty("jetty.port")
);
Server server = new Server(port);
server.setHandler(new RootHandler());
server.start();
Expand Down

0 comments on commit 5865f73

Please sign in to comment.