Update Nginx configuration to only use domains with DNS records

This commit is contained in:
boilerrat 2025-03-16 14:34:41 -04:00
parent fcc192bd30
commit b513f8fbda
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ cat > boilerhaus.org.conf.new << 'EOL'
server {
listen 80;
listen [::]:80;
server_name boilerhaus.org www.boilerhaus.org;
server_name boilerhaus.org;
root /var/www/boilerhaus.org;
index index.html;
@ -87,6 +87,6 @@ fi
# Run Certbot to ensure SSL certificates are set up for main domain
echo "Running Certbot to ensure SSL certificates are set up..."
eval "$SSH_CMD \"certbot --nginx -d boilerhaus.org -d www.boilerhaus.org -d cloud.boilerhaus.org --non-interactive --agree-tos --email admin@boilerhaus.org\""
eval "$SSH_CMD \"certbot --nginx -d boilerhaus.org -d cloud.boilerhaus.org --non-interactive --agree-tos --email admin@boilerhaus.org\""
echo "Done!"