Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1643 #1655

Merged
merged 2 commits into from
Oct 23, 2018
Merged

Fix #1643 #1655

merged 2 commits into from
Oct 23, 2018

Conversation

Mte90
Copy link
Member

@Mte90 Mte90 commented Oct 19, 2018

Summary:

#1643

@Mte90
Copy link
Member Author

Mte90 commented Oct 19, 2018

Right now this is the first part to be used by utilities so they not conflicts with sites.
Varying-Vagrant-Vagrants/custom-site-template#5 now I am working to add a support to inject settings for nginx inside a file.

@Mte90
Copy link
Member Author

Mte90 commented Oct 19, 2018

Ok seems that nginx works, with this utilities but also custom sites can inject rules globally to all the websites.

@@ -79,3 +79,5 @@ location ~ \.php$ {
# And get to serving the file!
fastcgi_index index.php;
}

include /etc/nginx/custom-rules/*.conf;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that this is included by all site nginx configs. I don't think that this is needed as a site template can already do this via vvv-nginx.conf

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I implemented this one for Varying-Vagrant-Vagrants/custom-site-template#5
But with that we cannot load on specific site, but as you said for this case is not the best solution.
I was thinking if someone want a service that can inject their own rules on a website, with this can be possible. For this idea I don't have an example now but probably is better to remove it.

@tomjn
Copy link
Member

tomjn commented Oct 19, 2018

I don't see how this fixes that issue. It provides a mechanism for utilities to add rules yes, but it doesn't simplify site templates modifying the nginx config, and I'm unsure what /etc/nginx/custom-rules/ is for, especially since every rule would be in effect on every WP site

@tomjn
Copy link
Member

tomjn commented Oct 19, 2018

I'd suggest streamlining it to the utilities rules change, then using the tideways PR as a means of testing it

@Mte90
Copy link
Member Author

Mte90 commented Oct 22, 2018

Changes done, now is only for custom-utilities

@tomjn tomjn merged commit f4576d9 into Varying-Vagrant-Vagrants:develop Oct 23, 2018
@Mte90 Mte90 deleted the custom-utilities branch July 9, 2019 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants