Why not have ERPNext approach nginx.conf the way WordPress security plugins approach .htaccess, simply appending their changes to the file instead of replacing it?
Hey, I know this is old but I want to achieve exactly the same. can you give steps on doing this solution?
what file name should I give to the new file in conf.d folder? I already have frappe-bench.conf file in it.
more importantly, how should I link this to nginx.conf in bench folder? should I write include /etc/nginx/conf.d/new_file in nginx.conf?
other than this what do I need to write in the file? :