mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
finetuning nginx
This commit is contained in:
@ -15,10 +15,11 @@ RUN apk -U upgrade && \
|
|||||||
git clone https://github.com/cymmetria/ciscoasa_honeypot && \
|
git clone https://github.com/cymmetria/ciscoasa_honeypot && \
|
||||||
cd ciscoasa_honeypot && \
|
cd ciscoasa_honeypot && \
|
||||||
pip3 install -r requirements.txt && \
|
pip3 install -r requirements.txt && \
|
||||||
chown -R ciscoasa:ciscoasa /opt/ciscoasa_honeypot
|
chown -R ciscoasa:ciscoasa /opt/ciscoasa_honeypot && \
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
# apk del build-base git nodejs-npm python
|
apk del build-base git libffi-dev openssl-dev python3-dev && \
|
||||||
|
apk add libffi openssl python3
|
||||||
|
|
||||||
# Start elasticsearch-head
|
# Start elasticsearch-head
|
||||||
WORKDIR /opt/ciscoasa_honeypot
|
WORKDIR /opt/ciscoasa_honeypot
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM nginx:alpine
|
FROM alpine
|
||||||
MAINTAINER MO
|
MAINTAINER MO
|
||||||
|
|
||||||
# Include dist
|
# Include dist
|
||||||
@ -9,7 +9,8 @@ RUN apk -U upgrade && \
|
|||||||
apk add bash nginx nginx-mod-http-headers-more procps && \
|
apk add bash nginx nginx-mod-http-headers-more procps && \
|
||||||
|
|
||||||
# Setup configs
|
# Setup configs
|
||||||
rm /etc/nginx/conf.d/* /usr/share/nginx/html/* && \
|
mkdir -p /run/nginx && \
|
||||||
|
rm -rf /etc/nginx/conf.d/* /usr/share/nginx/html/* && \
|
||||||
cp /root/dist/conf/nginx.conf /etc/nginx/ && \
|
cp /root/dist/conf/nginx.conf /etc/nginx/ && \
|
||||||
cp -R /root/dist/conf/ssl /etc/nginx/ && \
|
cp -R /root/dist/conf/ssl /etc/nginx/ && \
|
||||||
cp /root/dist/conf/tpotweb.conf /etc/nginx/conf.d/ && \
|
cp /root/dist/conf/tpotweb.conf /etc/nginx/conf.d/ && \
|
||||||
|
@ -9,8 +9,6 @@ services:
|
|||||||
container_name: nginx
|
container_name: nginx
|
||||||
restart: always
|
restart: always
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
# cap_add:
|
|
||||||
# - NET_BIND_SERVICE
|
|
||||||
ports:
|
ports:
|
||||||
- "64297:64297"
|
- "64297:64297"
|
||||||
image: "dtagdevsec/nginx:1710"
|
image: "dtagdevsec/nginx:1710"
|
||||||
|
Reference in New Issue
Block a user