Update Nginx configuration to only use domains with DNS records
This commit is contained in:
parent
fcc192bd30
commit
b513f8fbda
|
|
@ -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!"
|
||||
Loading…
Reference in New Issue