Certbot port fix

pull/332/head
Piero Toffanin 2017-11-17 15:18:17 -05:00
rodzic 6709a2c270
commit 275ea5f0f6
2 zmienionych plików z 9 dodań i 4 usunięć

Wyświetl plik

@ -21,7 +21,7 @@ if [ -z $DOMAIN ]; then
fi
# Generate/update certificate
certbot certonly --work-dir ./letsencrypt --config-dir ./letsencrypt --logs-dir ./letsencrypt --standalone -d $DOMAIN --register-unsafely-without-email --agree-tos --keep
certbot certonly --tls-sni-01-port $WO_PORT --work-dir ./letsencrypt --config-dir ./letsencrypt --logs-dir ./letsencrypt --standalone -d $DOMAIN --register-unsafely-without-email --agree-tos --keep
# Create ssl dir if necessary
if [ ! -e ssl/ ]; then
@ -38,6 +38,6 @@ if [ -e ssl/cert.pem ]; then
fi
if [ -e "letsencrypt/live/$DOMAIN" ]; then
ln -vs "letsencrypt/live/$DOMAIN/privkey.pem" ssl/key.pem
ln -vs "letsencrypt/live/$DOMAIN/chain.pem" ssl/cert.pem
ln -vs "../letsencrypt/live/$DOMAIN/privkey.pem" ssl/key.pem
ln -vs "../letsencrypt/live/$DOMAIN/chain.pem" ssl/cert.pem
fi

Wyświetl plik

@ -64,6 +64,11 @@ export WO_PORT="${WO_PORT:=8000}"
# Dump environment to .cronenv
printenv > .cronenv
proto="http"
if [ "$WO_SSL" = "YES" ]; then
proto="https"
fi
(sleep 5; echo
echo -e "\033[92m"
echo "Congratulations! └@(・◡・)@┐"
@ -71,7 +76,7 @@ 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 http://$WO_HOST:$WO_PORT
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") &