Copy to clipboard
Reset
# HTTPS: create Diffie-Hellman keys
openssl dhparam -dsaparam -out /etc/nginx/dhparam.pem 4096

# HTTPS: create ACME-challenge common directory
sudo -u {{ data.user }} sh -c "mkdir -p /var/www/_letsencrypt"

# HTTPS: certbot (obtain certificates)
certbot certonly --webroot --webroot-path /var/www/_letsencrypt --email {{ data.email }} --domain {{ data.domain }} --domain www.{{ data.domain }} --domain cdn.{{ data.domain }} --text --non-interactive --agree-tos --force-renew
/etc/nginx/nginx.conf
/etc/nginx/sites-enabled/{{ data.domain }}.conf
/etc/nginx/_ssl.conf
/etc/nginx/_letsencrypt.conf
/etc/nginx/_general.conf
/etc/nginx/_php.conf
/etc/nginx/_php_fastcgi.conf
/etc/nginx/_wordpress.conf