mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +00:00

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).
33 lines
864 B
Docker
33 lines
864 B
Docker
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;'
|