hashgraph / hedera-block-node

New Block Node services
Apache License 2.0
23 stars 3 forks source link

feat: Make server port configurable via a property in app.properties #345

Open mattp-swirldslabs opened 1 week ago

mattp-swirldslabs commented 1 week ago

As an engineer running a Block Node I want to be able to configure the port for the Block Node So that I can run the server on a different port

Tech Notes

 // Build the web server
        // TODO: make port server a configurable value.
        final WebServer webServer = webServerBuilder
                .port(8080)
                .addProtocol(pbjConfig)
                .addRouting(pbjRouting)
                .addRouting(httpRouting)
                .build();
AlfredoG87 commented 12 hours ago

according to IANA, the well-known ports are from 0 to 1023 so the min value should be 1024 and a max of 65,535 that is the maximun allowable port number due to the 16 bits restriction.