mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
Tweaking
Finalize qhoneypots config, thanks to @giga-a for native JSON logging! Completely rework T-Pot Landing Page based on Bento (https://github.com/migueravila/Bento). New NGINX image is down by 100MB and only uses 3.3 MB of RAM at runtime. Keep legacy Sensor option (without logstash).
This commit is contained in:
33
docker/nginx/Dockerfile
Normal file
33
docker/nginx/Dockerfile
Normal file
@ -0,0 +1,33 @@
|
||||
FROM alpine:3.15
|
||||
#
|
||||
# Include dist
|
||||
ADD dist/ /root/dist/
|
||||
#
|
||||
# Get and install dependencies & packages
|
||||
RUN apk -U --no-cache add \
|
||||
nginx \
|
||||
nginx-mod-http-headers-more \
|
||||
&& \
|
||||
#
|
||||
## Setup T-Pot Landing Page, Eleasticvue
|
||||
cp -R /root/dist/html/* /var/lib/nginx/html/ && \
|
||||
cd /var/lib/nginx/html/esvue && \
|
||||
tar xvfz esvue.tgz && \
|
||||
rm esvue.tgz && \
|
||||
#
|
||||
## Change ownership, permissions
|
||||
chown root:www-data -R /var/lib/nginx/html && \
|
||||
#
|
||||
## Add Nginx / T-Pot specific configs
|
||||
rm -rf /etc/nginx/conf.d/* /usr/share/nginx/html/* && \
|
||||
mkdir -p /etc/nginx/conf.d && \
|
||||
cp /root/dist/conf/nginx.conf /etc/nginx/ && \
|
||||
cp -R /root/dist/conf/ssl /etc/nginx/ && \
|
||||
cp /root/dist/conf/tpotweb.conf /etc/nginx/conf.d/ && \
|
||||
#
|
||||
# Clean up
|
||||
rm -rf /root/* && \
|
||||
rm -rf /var/cache/apk/*
|
||||
#
|
||||
# Start nginx
|
||||
CMD nginx -g 'daemon off;'
|
Reference in New Issue
Block a user