From 97058a80f1cd4d2c83d98e0006c47f4c2a8c72a9 Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Wed, 1 Jul 2020 10:32:06 +0200 Subject: [PATCH] changes --- oshipka.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oshipka.sh b/oshipka.sh index 61edf0d..955669e 100755 --- a/oshipka.sh +++ b/oshipka.sh @@ -168,8 +168,8 @@ prod_install() { python "${OSHIPKA_PATH}/provision/auto_dns/set_domain_ipv4.py" "$DOMAIN" sudo systemctl start nginx - echo "Enabling firewall rule for 192.168.1.1 -> 80/tcp..." - sudo ufw allow proto tcp from 192.168.1.1 to any port 80 + echo "Enabling firewall rule -> 80/tcp..." + sudo ufw allow proto tcp to any port 80 echo "4/6 Installing '$PROJECT_NAME' insecure nginx config..." if [ -f "/etc/nginx/sites-available/${DOMAIN}.insecure" ]; then echo "Insecure Nginx config for ${PROJECT_NAME} available." @@ -190,7 +190,7 @@ prod_install() { echo "6/6 Installing '$PROJECT_NAME' secure nginx config..." echo "Enabling firewall rule for 192.168.1.1 -> 443/tcp..." - sudo ufw allow proto tcp from 192.168.1.1 to any port 443 + sudo ufw allow proto tcp to any port 443 echo "Removing '$PROJECT_NAME' insecure nginx config..." sudo rm "/etc/nginx/sites-available/${DOMAIN}.insecure" "/etc/nginx/sites-enabled/${DOMAIN}.insecure"