I use Nginx as a server, and I currently use this for configuration of each my sites. Basically, I have multiple files like this located in /etc/nginx/conf.d/ ...
I don't like how this config has so much duplication. Any suggestions on how to at least shorten it somewhat? Normally we only have one server block as the staging server is separate from production, ...
I needed to IP block something in nginx and I ended up with duplicated proxy_forward code. How can I refactor and un-duplicate this? ...