Skip to content

Commit

Permalink
refactor: set arguments for jetty via command-line
Browse files Browse the repository at this point in the history
refactor: set arguments for jetty via command-line
  • Loading branch information
moabu authored Mar 11, 2022
2 parents 933645a + 7d0e928 commit 0a08929
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions docker-casa/scripts/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,6 @@ def modify_jetty_xml():
f.write(updates)


def modify_server_ini():
with open("/opt/jans/jetty/casa/start.d/server.ini", "a") as f:
updates = "\n".join([
# disable server version info
"jetty.httpConfig.sendServerVersion=false",
])
f.write(updates)


def configure_logging():
# default config
config = {
Expand Down Expand Up @@ -183,7 +174,6 @@ def main():

modify_jetty_xml()
modify_webdefault_xml()
modify_server_ini()
configure_logging()


Expand Down
2 changes: 1 addition & 1 deletion docker-casa/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ exec java \
-Djava.io.tmpdir=/opt/jetty/temp \
-Dlog4j2.configurationFile=resources/log4j2.xml \
${CN_JAVA_OPTIONS} \
-jar /opt/jetty/start.jar
-jar /opt/jetty/start.jar jetty.httpConfig.sendServerVersion=false jetty.deploy.scanInterval=0

0 comments on commit 0a08929

Please sign in to comment.