25 lines
841 B
Bash
Executable File
25 lines
841 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script fixes the git.boilerhaus.org subdomain configuration
|
|
|
|
# Check if we can connect to the VPS
|
|
echo "Testing connection to VPS..."
|
|
if ! ssh root@66.179.188.130 "echo 'Connection successful'"; then
|
|
echo "Failed to connect to VPS. Please check your SSH configuration."
|
|
exit 1
|
|
fi
|
|
|
|
# Upload the updated Nginx configuration
|
|
echo "Uploading updated Nginx configuration..."
|
|
scp boilerhaus.org.conf root@66.179.188.130:/etc/nginx/sites-available/boilerhaus.org
|
|
|
|
# Add git.boilerhaus.org to the SSL certificate
|
|
echo "Adding git.boilerhaus.org to the SSL certificate..."
|
|
ssh root@66.179.188.130 "certbot --nginx -d git.boilerhaus.org"
|
|
|
|
# Restart Nginx
|
|
echo "Restarting Nginx..."
|
|
ssh root@66.179.188.130 "systemctl restart nginx"
|
|
|
|
echo "Git subdomain fix complete!"
|
|
echo "You should now be able to access git.boilerhaus.org" |