Fix passing command line arguments (#1933)

* fix: use banners correctly

* fix: passing command line arguments

Since we already have `webwolf.port` it makes sense to also define `webwolf.port` explicitly and not rely on `server.port`

Closes: #1910
This commit is contained in:
Nanne Baars
2024-10-27 08:39:02 +01:00
committed by GitHub
parent cf5101a633
commit 4efaf87c7e
7 changed files with 35 additions and 17 deletions

View File

@ -2,7 +2,7 @@ server.error.include-stacktrace=always
server.error.path=/error.html
server.servlet.context-path=${WEBGOAT_CONTEXT:/WebGoat}
server.servlet.session.persistent=false
server.port=${WEBGOAT_PORT:8080}
server.port=${webgoat.port}
server.address=${WEBGOAT_HOST:127.0.0.1}
webgoat.host=${WEBGOAT_HOST:127.0.0.1}
webgoat.port=${WEBGOAT_PORT:8080}
@ -15,7 +15,6 @@ server.ssl.key-store-password=${WEBGOAT_KEYSTORE_PASSWORD:password}
server.ssl.key-alias=${WEBGOAT_KEY_ALIAS:goat}
server.ssl.enabled=${WEBGOAT_SSLENABLED:false}
spring.banner.location=classpath:banner.txt
spring.datasource.url=jdbc:hsqldb:file:${webgoat.server.directory}/webgoat
spring.datasource.driver-class-name=org.hsqldb.jdbc.JDBCDriver
spring.jpa.open-in-view=false

View File

@ -0,0 +1,5 @@
__ __ _ ____ _
\ \ / /__| |__ / ___| ___ __ _| |_
\ \ /\ / / _ \ '_ \| | _ / _ \ / _` | __|
\ V V / __/ |_) | |_| | (_) | (_| | |_
\_/\_/ \___|_.__/ \____|\___/ \__,_|\__|

View File

@ -0,0 +1,5 @@
__ __ _ __ __ _ __
\ \ / /__| |_\ \ / /__ | |/ _|
\ \ /\ / / _ \ '_ \ \ /\ / / _ \| | |_
\ V V / __/ |_) \ V V / (_) | | _|
\_/\_/ \___|_.__/ \_/\_/ \___/|_|_|

View File

@ -1,6 +0,0 @@
__ __ _ _____ _
\ \ / / | | / ____| | |
\ \ /\ / / ___ | |__ | | __ ___ __ _ | |_
\ \/ \/ / / _ \ | '_ \ | | |_ | / _ \ / _' | | __|
\ /\ / | __/ | |_) | | |__| | | (_) | | (_| | | |_
\/ \/ \___| |_.__/ \_____| \___/ \__,_| \__|