Update nginx.sh

This commit is contained in:
FusionPBX 2017-06-24 09:23:08 -06:00 committed by GitHub
parent 71f34080ac
commit 43ebaffc28
1 changed files with 4 additions and 1 deletions

View File

@ -63,8 +63,11 @@ if [ .$interface_name = .'auto' ]; then
fi fi
fi fi
#get the ip address
local_ip_v4=$(ifconfig $interface_name | grep 'inet ' | awk '{print $2}')
#set the IP= address #set the IP= address
common_name=$interface_name common_name=$local_ip_v4
#self signed certificate #self signed certificate
/usr/bin/openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 \ /usr/bin/openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 \