mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
tweaking for tpotlight
This commit is contained in:
86
docker/nginx/dist/conf/tpotweb.conf
vendored
86
docker/nginx/dist/conf/tpotweb.conf
vendored
@ -121,61 +121,91 @@ server {
|
||||
try_files $uri $uri/ /cyberchef/index.html;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#################
|
||||
### Proxied sites
|
||||
#################
|
||||
|
||||
### Kibana
|
||||
location /kibana/ {
|
||||
proxy_pass http://127.0.0.1:64296;
|
||||
set_by_lua_block $kibana {
|
||||
local tpot_ostype = os.getenv("TPOT_OSTYPE")
|
||||
if tpot_ostype == "mac" or tpot_ostype == "win" then
|
||||
return "http://kibana:5601";
|
||||
else
|
||||
return "http://127.0.0.1:64296";
|
||||
end
|
||||
}
|
||||
proxy_pass $kibana;
|
||||
rewrite /kibana/(.*)$ /$1 break;
|
||||
}
|
||||
|
||||
### ES
|
||||
location /es/ {
|
||||
proxy_pass http://127.0.0.1:64298/;
|
||||
set_by_lua_block $elasticsearch {
|
||||
local tpot_ostype = os.getenv("TPOT_OSTYPE")
|
||||
if tpot_ostype == "mac" or tpot_ostype == "win" then
|
||||
return "http://elasticsearch:9200";
|
||||
else
|
||||
return "http://127.0.0.1:64298";
|
||||
end
|
||||
}
|
||||
proxy_pass $elasticsearch;
|
||||
rewrite /es/(.*)$ /$1 break;
|
||||
}
|
||||
|
||||
### Map
|
||||
location /map/ {
|
||||
proxy_pass http://127.0.0.1:64299/;
|
||||
set_by_lua_block $map_web {
|
||||
local tpot_ostype = os.getenv("TPOT_OSTYPE")
|
||||
if tpot_ostype == "mac" or tpot_ostype == "win" then
|
||||
return "http://map_web:64299";
|
||||
else
|
||||
return "http://127.0.0.1:64299";
|
||||
end
|
||||
}
|
||||
proxy_pass $map_web;
|
||||
rewrite /map/(.*)$ /$1 break;
|
||||
proxy_read_timeout 7200s;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect http:// https://;
|
||||
}
|
||||
location /websocket {
|
||||
proxy_pass http://127.0.0.1:64299;
|
||||
proxy_read_timeout 3600s;
|
||||
set_by_lua_block $map_web {
|
||||
local tpot_ostype = os.getenv("TPOT_OSTYPE")
|
||||
if tpot_ostype == "mac" or tpot_ostype == "win" then
|
||||
return "http://map_web:64299";
|
||||
else
|
||||
return "http://127.0.0.1:64299";
|
||||
end
|
||||
}
|
||||
proxy_pass $map_web;
|
||||
proxy_read_timeout 7200s;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect http:// https://;
|
||||
}
|
||||
|
||||
### spiderfoot
|
||||
location /spiderfoot {
|
||||
proxy_pass http://127.0.0.1:64303;
|
||||
### Spiderfoot
|
||||
set_by_lua_block $spiderfoot_backend {
|
||||
local tpot_ostype = os.getenv("TPOT_OSTYPE")
|
||||
if tpot_ostype == "mac" or tpot_ostype == "win" then
|
||||
return "http://spiderfoot:8080";
|
||||
else
|
||||
return "http://127.0.0.1:64303";
|
||||
end
|
||||
}
|
||||
location /spiderfoot/ {
|
||||
proxy_pass $spiderfoot_backend;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect http:// https://;
|
||||
}
|
||||
location ~ ^/(static|scanviz|scandelete|scaninfo) {
|
||||
proxy_pass $spiderfoot_backend/spiderfoot/$1$is_args$args;
|
||||
}
|
||||
|
||||
location /static {
|
||||
proxy_pass http://127.0.0.1:64303/spiderfoot/static;
|
||||
}
|
||||
|
||||
location /scanviz {
|
||||
proxy_pass http://127.0.0.1:64303/spiderfoot/scanviz;
|
||||
}
|
||||
|
||||
location /scandelete {
|
||||
proxy_pass http://127.0.0.1:64303/spiderfoot/scandelete;
|
||||
}
|
||||
|
||||
location /scaninfo {
|
||||
proxy_pass http://127.0.0.1:64303/spiderfoot/scaninfo;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user