The script should be able to
- Generate nginx config file with necessary parameters such as server_name, root, etc. in
/etc/nginx/sites-available, with name same as server_name
- Link
/etc/nginx/sites-enabled/server_name to the generated file
- Generate SSL certificates through
sudo certbot --nginx
- Test if there are any errors with
sudo nginx -t
- Restart nginx server with
sudo nginx -s reload