I’ve spent a good bit of time digging through the forums, I’ve seen lots of requests but no answers around this. Or maybe I’m missing a simple explanation.
I need to add a good number of custom directives to nginx, a basic template form or template config file.
I need to add fastcgi_cache_path before each server directive in nginx as well as set expire headers, paths to exclude from caching etc.
My perl is a bit rusty, haven’t used perl in many many years but I’ve been doing this in ansible with jinja templates and it’s breeze. Is there a way to add this easily? Many of the params would be the same for all hosts except the fastcgi_cache_path which would be set to the path for each virtual server so cache could be managed separately for each (I’ll write a wordpress module to handle this).