Skip to content

Commit

Permalink
fix: disable jersey wadl by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ytvnr committed Mar 28, 2024
1 parent a5ea47b commit f9e22d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Expand Up @@ -77,6 +77,10 @@ JAVA_OPTS="$JAVA_OPTS -Xmx${GIO_MAX_MEM}"
# set to headless, just in case
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"

# disable jersey WADL
JAVA_OPTS="$JAVA_OPTS -Djersey.config.allowSystemPropertiesProvider=true"
JAVA_OPTS="$JAVA_OPTS -Djersey.config.server.wadl.disableWadl=true"

# Force the JVM to use IPv4 stack
if [ "x$GIO_USE_IPV4" != "x" ]; then
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
Expand Down
Expand Up @@ -33,6 +33,10 @@ set JAVA_OPTS=%JAVA_OPTS% -Xms%GIO_MIN_MEM% -Xmx%GIO_MAX_MEM%
REM set to headless, just in case
set JAVA_OPTS=%JAVA_OPTS% -Djava.awt.headless=true

REM disable jersey WADL
set JAVA_OPTS=%JAVA_OPTS% -Djersey.config.allowSystemPropertiesProvider=true
set JAVA_OPTS=%JAVA_OPTS% -Djersey.config.server.wadl.disableWadl=true

REM Force the JVM to use IPv4 stack
if NOT "%ES_USE_IPV4%" == "" (
set JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true
Expand Down

0 comments on commit f9e22d4

Please sign in to comment.