cd /etc/nginx/
# copy the default configuration
cp /etc/nginx/sites-available/default /etc/nginx/sites-available/<name_of_site>
# edit the nginx congiguration to your likings
vim /etc/nginx/sites-available/<name_of_site>
Note: Quartz 4 demands some special handling with regards to the location
section.
Afterwards, we need to register the newly created site <name_of_site>
under the enabled sites.
# create a soft symlink
ln -s /etc/nginx/sites-available/<name_of_site> /etc/nginx/sites-enabled/<name_of_site>
At last we need to run Certbot to get our SSL certificate to enable https for our website.
certbot --nginx