Nginx configuration
Configuration of Nginx starts with the config file /etc/nginx/nginx.conf and this then loads the virtual host files from /etc/nginx/vhosts.d . I have adopted a format of "NN-<domain..vhost.conf" which allows me to order the way files are loaded although it's not particularly important with my setup currently. Also stored in the /etc/nginx directory is a directory for ssl in which the security certificates are stored, with a separate directory for each domain. This is actually a mirror from the ones stored in .acme.sh which are automatically updated from LetsEncrypt. This is all operational, but does need a little tidy and proper documentation.
Nginx also needs access to fastcgi which it uses to provide both cgi and php services. Getting both working has been the subject of other articles, but the basic configuration is similar and while the default distribution process produces a php-fpm service for the active PHP, we have a process where we have php73-fpm, php74-fpm, php83-fpm and php84-fpm each running in parallel. Along with the fcgiwrap service, all are defined in /usr/lib/systemd/system/ and in parallel with Nginx they are controlled via systemctl functions from the command line. Firebird 5 is also managed by systemd, something I have mirrored down to Firebird 3 to keep everything consistent.