map server tweaking

This commit is contained in:
t3chn0m4g3 2022-02-12 01:04:02 +00:00
parent 1f610b84d7
commit 6fed549f58
6 changed files with 73 additions and 28 deletions

View file

@ -64,8 +64,6 @@ services:
restart: always
stop_signal: SIGKILL
tty: true
# networks:
# - map_local
ports:
- "127.0.0.1:6379:6379"
image: "dtagdevsec/redis:2203"
@ -82,11 +80,9 @@ services:
- /opt/tpot/etc/compose/elk_environment
stop_signal: SIGKILL
tty: true
# networks:
# - map_local
ports:
- "127.0.0.1:64299:64299"
image: "dtagdevsec/map_web:2203"
image: "dtagdevsec/map_server:2203"
depends_on:
- map_redis
@ -100,8 +96,6 @@ services:
- /opt/tpot/etc/compose/elk_environment
stop_signal: SIGKILL
tty: true
# networks:
# - map_local
image: "dtagdevsec/map_web:2203"
image: "dtagdevsec/map_server:2203"
depends_on:
- map_redis

View file

@ -1,5 +1,8 @@
FROM alpine:3.15
#
# Include dist
#ADD dist/ /root/dist/
#
# Install packages
RUN apk -U add \
build-base \

View file

@ -11,8 +11,6 @@ services:
restart: always
stop_signal: SIGKILL
tty: true
# networks:
# - map_local
ports:
- "127.0.0.1:6379:6379"
image: "dtagdevsec/redis:2203"
@ -29,11 +27,9 @@ services:
- /opt/tpot/etc/compose/elk_environment
stop_signal: SIGKILL
tty: true
# networks:
# - map_local
ports:
- "127.0.0.1:64299:64299"
image: "dtagdevsec/map_web:2203"
image: "dtagdevsec/map_server:2203"
depends_on:
- map_redis
@ -47,8 +43,6 @@ services:
- /opt/tpot/etc/compose/elk_environment
stop_signal: SIGKILL
tty: true
# networks:
# - map_local
image: "dtagdevsec/map_web:2203"
image: "dtagdevsec/map_server:2203"
depends_on:
- map_redis

View file

@ -65,7 +65,7 @@ server {
### This will enforce HTTP browsing into HTTPS and avoid ssl stripping attack
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
# add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
##################################
### Restrict access and basic auth
@ -125,12 +125,21 @@ server {
}
### Map
location /map/ {
proxy_pass http://127.0.0.1:64299/;
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 {

Binary file not shown.

View file

@ -511,6 +511,51 @@ services:
volumes:
- /data:/data
## Map Redis Service
map_redis:
container_name: map_redis
restart: always
stop_signal: SIGKILL
tty: true
ports:
- "127.0.0.1:6379:6379"
image: "dtagdevsec/redis:2203"
read_only: true
## Map Web Service
map_web:
container_name: map_web
restart: always
environment:
- MAP_COMMAND=AttackMapServer.py
env_file:
- /opt/tpot/etc/compose/elk_environment
stop_signal: SIGKILL
tty: true
ports:
- "127.0.0.1:64299:64299"
image: "dtagdevsec/map_server:2203"
depends_on:
- map_redis
## Map Data Service
map_data:
container_name: map_data
restart: always
depends_on:
elasticsearch:
condition: service_healthy
environment:
- MAP_COMMAND=DataServr_v2.py
env_file:
- /opt/tpot/etc/compose/elk_environment
stop_signal: SIGKILL
tty: true
image: "dtagdevsec/map_server:2203"
depends_on:
- map_redise
#### /ELK
# Ewsposter service
ewsposter:
container_name: ewsposter