Skip to content

Commit 8fae123

Browse files
authored
Modify Jetty http port configuration to use optional System Property (#2612)
Updated Jetty configuration to allow http port specification via Java System Property jetty.http.port keeping the default value as 8080.
1 parent 7a4f90e commit 8fae123

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

basex-api/src/main/webapp/WEB-INF/jetty.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
22
<Configure id="Server" class="org.eclipse.jetty.server.Server">
33
<!-- Default connector. The Jetty stop port can be specified
4-
in the .basex or pom.xml configuration file. -->
4+
in the .basex or pom.xml configuration file.
5+
The Jetty http port can be specified here or by setting
6+
the Java System Property jetty.http.port.
7+
-->
58
<Call name="addConnector">
69
<Arg>
710
<New class="org.eclipse.jetty.server.ServerConnector">
811
<Arg name="server"><Ref refid="Server"/></Arg>
912
<Set name="host">0.0.0.0</Set>
10-
<Set name="port">8080</Set>
13+
<Set name="port"><SystemProperty name="jetty.http.port" default="8080"/></Set>
1114
<Set name="idleTimeout">60000</Set>
1215
<Set name="reuseAddress">true</Set>
1316
</New>

0 commit comments

Comments
 (0)