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? ...