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
|
||||
# - "NOREDIR=true" #Do not redirect port 80
|
||||
# - "SYNCSERVERS=1 2 3 4"
|
||||
# - "DISIPV6=true"
|
||||
|
||||
misp-modules:
|
||||
image: coolacid/misp-docker:modules-latest
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue