Update to new version for develop
Move WebWolf to port 9090 easier since most of the time something is running on 8081 Add scripts for easy building Docker files etc
This commit is contained in:
@ -32,6 +32,11 @@ public class FileServer {
|
||||
|
||||
@Value("${webwolf.fileserver.location}")
|
||||
private String fileLocatation;
|
||||
@Value("${server.address}")
|
||||
private String server;
|
||||
@Value("${server.port}")
|
||||
private int port;
|
||||
|
||||
|
||||
@PostMapping(value = "/WebWolf/fileupload")
|
||||
@SneakyThrows
|
||||
@ -84,6 +89,7 @@ public class FileServer {
|
||||
}
|
||||
|
||||
modelAndView.addObject("files", uploadedFiles);
|
||||
modelAndView.addObject("webwolf_url", "http://" + server +":" + port);
|
||||
return modelAndView;
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,8 @@ server.error.include-stacktrace=always
|
||||
server.error.path=/error.html
|
||||
server.session.timeout=6000
|
||||
#server.contextPath=/WebWolf
|
||||
server.port=8081
|
||||
server.address=127.0.0.1
|
||||
server.port=9090
|
||||
server.address=localhost
|
||||
server.session.cookie.name = WEBWOLFSESSION
|
||||
|
||||
spring.datasource.url=jdbc:hsqldb:hsql://${webgoat.server.address:localhost}:9001/webgoat
|
||||
|
@ -20,7 +20,7 @@
|
||||
</p>
|
||||
<p>
|
||||
Each file will be available under the following url:
|
||||
http://localhost:8081/files/{username}/{filename}.
|
||||
<span th:text="${webwolf_url}">http://localhost:9090/</span>/files/{username}/{filename}.
|
||||
</p>
|
||||
<p>
|
||||
You can copy and paste the location from the table below.
|
||||
@ -33,7 +33,7 @@
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<!-- Standar Form -->
|
||||
<!-- Standard Form -->
|
||||
<form th:action="@{/WebWolf/fileupload}" method="post" enctype="multipart/form-data">
|
||||
<div class="form-inline">
|
||||
<div class="form-group">
|
||||
|
Reference in New Issue
Block a user