Fixed tunnel-reverseproxy-restart to handle nginx server restart directly in server via simple bash command

This commit is contained in:
arul 2025-11-16 09:06:59 +05:30
parent 9fbf54adcb
commit f03bc9be65

View File

@ -1,6 +1,6 @@
#!/bin/bash
ssh -i /home/arul/.ssh/id_rsa root@74.208.74.61 <<EOF
# Test Nginx configuration
if sudo /usr/local/nginx/sbin/nginx -t; then
echo "✅ Nginx config test passed, reloading..."
if sudo /usr/local/nginx/sbin/nginx -s reload; then
@ -11,5 +11,3 @@ if sudo /usr/local/nginx/sbin/nginx -t; then
else
echo "❌ Nginx config test failed!"
fi
EOF