Nginx directives file in home directory, for source control etc.
What about source control for additional nginx directives?
Additional nginx directives is kind of annoying from a source control perspective.
You can add all kinds of additional nginx directives in the Plesk interface for a site, but it won't be added to your git repository, if you have e.g. /var/www/vhosts/mydomain.com as git root Why? Because the file modified by the Plesk interface is at /var/www/vhosts/system/mydomain.com/conf/vhost_nginx.conf - owned by root no less!
How about looking in e.g. /var/www/vhosts/mydomain.com/server.conf for some additional nginx directives? This would ensure it could be added to version control, if the repository root is there. And also modified by the user without having to log in to the plesk administration.
Kind of like .htaccess really.
Thank you for your input!
Unfortunately, we have to close your request because it has not become quite popular for further implementation over the years.
—
IG