mirror of https://github.com/MISP/misp-docker
Disable IPv6 option
parent
dcd893e069
commit
6a7f555def
|
@ -40,6 +40,7 @@ services:
|
||||||
- "INIT=true" # Initialze MISP, things includes, attempting to import SQL and the Files DIR
|
- "INIT=true" # Initialze MISP, things includes, attempting to import SQL and the Files DIR
|
||||||
# - "NOREDIR=true" #Do not redirect port 80
|
# - "NOREDIR=true" #Do not redirect port 80
|
||||||
# - "SYNCSERVERS=1 2 3 4"
|
# - "SYNCSERVERS=1 2 3 4"
|
||||||
|
# - "DISIPV6=true"
|
||||||
|
|
||||||
misp-modules:
|
misp-modules:
|
||||||
image: coolacid/misp-docker:modules-latest
|
image: coolacid/misp-docker:modules-latest
|
||||||
|
|
|
@ -113,11 +113,18 @@ if [[ ! -f /var/www/MISP/PyMISP/pymisp/data/describeTypes.json ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$NOREDIR" == true ]]; then
|
if [[ "$NOREDIR" == true ]]; then
|
||||||
|
echo "Configure NGINX | Disabling Port 80 Redirect"
|
||||||
ln -s /etc/nginx/sites-available/misp80-noredir /etc/nginx/sites-enabled/misp80
|
ln -s /etc/nginx/sites-available/misp80-noredir /etc/nginx/sites-enabled/misp80
|
||||||
else
|
else
|
||||||
ln -s /etc/nginx/sites-available/misp80 /etc/nginx/sites-enabled/misp80
|
ln -s /etc/nginx/sites-available/misp80 /etc/nginx/sites-enabled/misp80
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$DISIPV6" == true ]]; then
|
||||||
|
echo "Configure NGINX | Disabling IPv6"
|
||||||
|
sed -i "s/listen \[\:\:\]/\#listen \[\:\:\]/" /etc/nginx/sites-enabled/misp80
|
||||||
|
sed -i "s/listen \[\:\:\]/\#listen \[\:\:\]/" /etc/nginx/sites-enabled/misp
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -x /custom-entrypoint.sh ]]; then
|
if [[ -x /custom-entrypoint.sh ]]; then
|
||||||
/custom-entrypoint.sh
|
/custom-entrypoint.sh
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue