Cert generation warning

pull/332/head
Piero Toffanin 2017-11-17 16:41:41 -05:00
rodzic 8d9b60f458
commit 2328f96140
2 zmienionych plików z 17 dodań i 10 usunięć

Wyświetl plik

@ -47,6 +47,8 @@ fi
if [ -e "letsencrypt/live/$DOMAIN" ]; then
ln -vs "../letsencrypt/live/$DOMAIN/privkey.pem" ssl/key.pem
ln -vs "../letsencrypt/live/$DOMAIN/fullchain.pem" ssl/cert.pem
else
echo -e "\033[91mWARN: We couldn't automatically generate the SSL certificate. Review the console log. WebODM will likely be inaccessible.\033[39m"
fi
# Restart nginx if necessary

Wyświetl plik

@ -69,18 +69,21 @@ if [ "$WO_SSL" = "YES" ]; then
proto="https"
fi
(sleep 5; echo
echo -e "\033[92m"
echo "Congratulations! └@(・◡・)@┐"
echo ==========================
echo -e "\033[39m"
echo "If there are no errors, WebODM should be up and running!"
echo -e "\033[93m"
echo Open a web browser and navigate to $proto://$WO_HOST:$WO_PORT
echo -e "\033[39m"
echo -e "\033[91mNOTE:\033[39m Windows users using docker should replace localhost with the IP of their docker machine's IP. To find what that is, run: docker-machine ip") &
congrats(){
(sleep 5; echo
echo -e "\033[92m"
echo "Congratulations! └@(・◡・)@┐"
echo ==========================
echo -e "\033[39m"
echo "If there are no errors, WebODM should be up and running!"
echo -e "\033[93m"
echo Open a web browser and navigate to $proto://$WO_HOST:$WO_PORT
echo -e "\033[39m"
echo -e "\033[91mNOTE:\033[39m Windows users using docker should replace localhost with the IP of their docker machine's IP. To find what that is, run: docker-machine ip") &
}
if [ "$1" = "--setup-devenv" ] || [ "$2" = "--setup-devenv" ] || [ "$1" = "--no-gunicorn" ]; then
congrats
python manage.py runserver 0.0.0.0:8000
else
if [ -e /webodm ] && [ ! -e /webodm/build/static ]; then
@ -107,6 +110,8 @@ else
conf="nginx-ssl.conf"
fi
congrats
nginx -c $(pwd)/nginx/$conf
gunicorn webodm.wsgi --bind unix:/tmp/gunicorn.sock --timeout 360 --preload
fi