I am trying to test out some custom NGINX customization locally before deploy to a remote server. I noticed that after adding a conf.j2 file, I wasn’t seeing my changes reflected in my local site.
I ssh’d into the VB, navigated to /etc/nginx and noticed there was no includes.d file like the documentation said there would be.
The only other post where someone experienced this was here, but it turned out to be an issue with ssh’ing into the wrong server. So I know it’s something I am doing wrong.
Here’s my changes:
NGINX-Includes/mysite.com/custom-cache.conf.j2
After my last provision, I read through the tasks and confirmed there is no includes.d file being created.
Any idea what I am doing wrong here?
This site uses a bit of a dated version of Trellis (pull 992) if that helps.
Just came across another issue. Trellis is not correctly scaffolding the includes.d directory in the vagrant machine. Instead of:
includes.d/mysite.com/custom-cache.conf
It is like this:
includes.d/custom-cache.conf
I’ve manually recreated the correct directory structure in the VB and added my custom-cache.conf. I can see my nginx changes implemented.
I am comparing my wordpress/roles/tasks/nginx-includes.yml to the trellis master branch nginx-includes.yml and can’t seem to find any difference. I am also not an Ansible expert, so it’s very possible I am missing something.