Disable IPv6 option

pull/1/head
Jason Kendall 2020-03-12 09:40:27 -04:00
parent dcd893e069
commit 6a7f555def
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,7 @@ services:
- "INIT=true" # Initialze MISP, things includes, attempting to import SQL and the Files DIR
# - "NOREDIR=true" #Do not redirect port 80
# - "SYNCSERVERS=1 2 3 4"
# - "DISIPV6=true"
misp-modules:
image: coolacid/misp-docker:modules-latest

View File

@ -113,11 +113,18 @@ if [[ ! -f /var/www/MISP/PyMISP/pymisp/data/describeTypes.json ]]; then
fi
if [[ "$NOREDIR" == true ]]; then
echo "Configure NGINX | Disabling Port 80 Redirect"
ln -s /etc/nginx/sites-available/misp80-noredir /etc/nginx/sites-enabled/misp80
else
ln -s /etc/nginx/sites-available/misp80 /etc/nginx/sites-enabled/misp80
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
/custom-entrypoint.sh
fi