From fc7c748b203350647097fc4c9f7168a4aa13eb5d Mon Sep 17 00:00:00 2001 From: t3chn0m4g3 Date: Sun, 20 Feb 2022 23:11:24 +0000 Subject: [PATCH] add attack map to web gui --- docker/nginx/dist/conf/tpotweb.conf | 30 ++++++++++++++--------------- docker/nginx/dist/html/config.js | 4 ++++ 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/docker/nginx/dist/conf/tpotweb.conf b/docker/nginx/dist/conf/tpotweb.conf index 22fafc4a..adcd7f95 100644 --- a/docker/nginx/dist/conf/tpotweb.conf +++ b/docker/nginx/dist/conf/tpotweb.conf @@ -125,21 +125,21 @@ server { } ### Map -# location /map/ { -# proxy_pass http://127.0.0.1:64299/; -# rewrite /map/(.*)$ /$1 break; -# proxy_http_version 1.1; -# proxy_set_header Upgrade $http_upgrade; -# proxy_set_header Connection "Upgrade"; -# proxy_set_header Host $host; -# } -# location /websocket { -# proxy_pass http://127.0.0.1:64299; -# proxy_http_version 1.1; -# proxy_set_header Upgrade $http_upgrade; -# proxy_set_header Connection "Upgrade"; -# proxy_set_header Host $host; -# } + location /map/ { + proxy_pass http://127.0.0.1:64299/; + rewrite /map/(.*)$ /$1 break; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; + } + location /websocket { + proxy_pass http://127.0.0.1:64299; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; + } ### spiderfoot location /spiderfoot { diff --git a/docker/nginx/dist/html/config.js b/docker/nginx/dist/html/config.js index 6e61cc72..a98788a5 100644 --- a/docker/nginx/dist/html/config.js +++ b/docker/nginx/dist/html/config.js @@ -54,6 +54,10 @@ const CONFIG = { }, ], secondList: [ + { + name: 'Attack Map', + link: '/map/', + }, { name: 'SecurityMeter', link: 'https://sicherheitstacho.eu',