Merge branch 'master' of gitlab.com:pisquared/oshipka

This commit is contained in:
Daniel Tsvetkov 2020-07-01 15:58:49 +02:00
commit 92865d8783

View File

@ -200,8 +200,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."
@ -222,7 +222,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"