changes
This commit is contained in:
parent
1e9776ee82
commit
97058a80f1
@ -168,8 +168,8 @@ prod_install() {
|
|||||||
python "${OSHIPKA_PATH}/provision/auto_dns/set_domain_ipv4.py" "$DOMAIN"
|
python "${OSHIPKA_PATH}/provision/auto_dns/set_domain_ipv4.py" "$DOMAIN"
|
||||||
|
|
||||||
sudo systemctl start nginx
|
sudo systemctl start nginx
|
||||||
echo "Enabling firewall rule for 192.168.1.1 -> 80/tcp..."
|
echo "Enabling firewall rule -> 80/tcp..."
|
||||||
sudo ufw allow proto tcp from 192.168.1.1 to any port 80
|
sudo ufw allow proto tcp to any port 80
|
||||||
echo "4/6 Installing '$PROJECT_NAME' insecure nginx config..."
|
echo "4/6 Installing '$PROJECT_NAME' insecure nginx config..."
|
||||||
if [ -f "/etc/nginx/sites-available/${DOMAIN}.insecure" ]; then
|
if [ -f "/etc/nginx/sites-available/${DOMAIN}.insecure" ]; then
|
||||||
echo "Insecure Nginx config for ${PROJECT_NAME} available."
|
echo "Insecure Nginx config for ${PROJECT_NAME} available."
|
||||||
@ -190,7 +190,7 @@ prod_install() {
|
|||||||
|
|
||||||
echo "6/6 Installing '$PROJECT_NAME' secure nginx config..."
|
echo "6/6 Installing '$PROJECT_NAME' secure nginx config..."
|
||||||
echo "Enabling firewall rule for 192.168.1.1 -> 443/tcp..."
|
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..."
|
echo "Removing '$PROJECT_NAME' insecure nginx config..."
|
||||||
sudo rm "/etc/nginx/sites-available/${DOMAIN}.insecure" "/etc/nginx/sites-enabled/${DOMAIN}.insecure"
|
sudo rm "/etc/nginx/sites-available/${DOMAIN}.insecure" "/etc/nginx/sites-enabled/${DOMAIN}.insecure"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user