Skip to content

Commit

Permalink
Bugfix/issue 60 (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
merry-degaga authored Nov 10, 2023
1 parent 47475a4 commit 8d68687
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ http {
set $VulnerableApplication VulnerableApp-jsp;
proxy_pass http://$VulnerableApplication:8080;
}

location /VulnerableApp-php {
# As VulnerableApp-Facade should run even if some of the Vulnerable Applications are not present
# there for added below configuration.
Expand All @@ -38,7 +38,7 @@ http {
proxy_pass http://$VulnerableApplication:80;
}

location /VulnerabilityDefinitions {
location = /VulnerabilityDefinitions {
default_type 'application/json';
content_by_lua_block {
local vulnerableAppResponse = ngx.location.capture("/VulnerableApp/VulnerabilityDefinitions")
Expand All @@ -48,7 +48,7 @@ http {
}
}

location /scanner/dast {
location = /scanner/dast {
default_type 'application/json';
content_by_lua_block {
local vulnerableAppResponse = ngx.location.capture("/VulnerableApp/scanner")
Expand All @@ -58,7 +58,7 @@ http {
}
}

location /scanner/sast {
location = /scanner/sast {
default_type 'application/json';
content_by_lua_block {
local vulnerableAppResponse = ngx.location.capture("/VulnerableApp/scanner/sast")
Expand All @@ -67,7 +67,7 @@ http {
ngx.say(require("vulnerableapp_utility").merge_vulnerability_information(vulnerableAppResponse, vulnerableAppJspResponse, vulnerableAppPhpResponse))
}
}

location / {
root /usr/share/nginx/html;
}
Expand Down

0 comments on commit 8d68687

Please sign in to comment.