Browse Source

http auth default password set to random

bugfixes
harshadyeola 10 years ago
parent
commit
67d3d441b7
  1. 6
      src/modules/stack/install/ee_mod_setup_nginx.sh

6
src/modules/stack/install/ee_mod_setup_nginx.sh

@ -3,6 +3,7 @@
function ee_mod_setup_nginx()
{
local ee_whitelist_ip_address
local ee_random=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 15 | head -n1)
ee_lib_echo "Setting up NGINX, please wait..."
@ -94,4 +95,9 @@ function ee_mod_setup_nginx()
sed -i "/deny/i $(echo allow $ee_whitelist_ip_address\;)" /etc/nginx/common/acl.conf
done
fi
# Set easyengine:easyengine as default http authentication
if [ ! -f /etc/nginx/htpasswd-ee ]; then
printf "easyengine:$(openssl passwd -crypt $ee_random 2> /dev/null)\n" > /etc/nginx/htpasswd-ee 2> /dev/null
fi
}

Loading…
Cancel
Save