-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Use H5BP server configs #37
Conversation
@@ -0,0 +1,3 @@ | |||
--- | |||
- name: be sure nginx is restarted | |||
action: service name=nginx state=restarted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this isn't used I'm not sure we should include it by default yet.
This should ideally be identical to https://github.com/roots/bedrock-ansible/blob/master/roles/wordpress-sites/handlers/main.yml if we kept it in. Annoying that Ansible can't call handlers from another role.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove it
ebd663e
to
944a2f0
Compare
How about now? |
Any votes against including |
If we enable caching wouldn't we need to implement some sort of revving process? |
Aye. It's built in to WP's wp_enqueue_anything, though it adds a query string to the end of the file with the version number, which this guy recommends against. Wufoo proposed another solution. Either way, by default we have a revving process built into WordPress. If we want to be more "legit," we could also look into implementing another solution. |
Provided we bake in the Wufoo solution by default I don't see a problem with it. But enabling caching might have to be another issue separate from my basic integration PR here. |
Totally agree. That'd be a great separate PR |
command: cp -r /tmp/server-configs-nginx/{{ item }} /etc/nginx/{{ item }} | ||
with_items: | ||
- 'mime.types' | ||
- 'h5bp/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double quotes. Remember that you're the one who convinced me to switch :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
( ͡° ͜ʖ ͡°)
Looks good other than the few minor formatting issues 👍 |
Fixed the formatting issues. Thanks for keeping my ass in line ;). |
I was going to comment about using |
One more thing. Can we add this? https://github.com/h5bp/server-configs-nginx/blob/master/sites-available/no-default. Something like: - name: Enable better default site to drop unknown requests
file: src=/tmp/server-configs-nginx/sites-available/no-default
dest="/etc/nginx/sites-enabled/no-default.conf"
owner=root
group=root
state=link We may want to copy that file to sites-available before linking. |
Sure thing |
Old issue in this thread, but worth bringing up again: completely forgot the Roots theme already has filename-based revving built in, so there's that. |
gonna add that thing @swalkinshaw requested tonight |
@austinpray ^ 🐱 |
0960e29
to
c0da4ce
Compare
Good to go. |
Looks like you did a rebase of some sort but can this be squashed into 1 commit as well? |
Checks out a stable version of h5bp/server-configs-nginx and applies it to the /etc/nginx folder http://goo.gl/pBfB4W Misc: Adds "restart nginx" handler Moved nginx variables to defaults yml formatting issues Enable better default site to drop unknown requests
c0da4ce
to
b1459f2
Compare
welp. I think I borked it. |
b1459f2
to
72cc577
Compare
okay fixed lol |
Would be good to have the |
@teohhanhui the downside is that you might not get the latest version of the files if you don't have cache busting in place. This comment still applies. |
This has been tested locally but I would like to try to deploy it on digital ocean to see if it runs alright on a remote server (shouldn't be an issue)
Any feedback on this?
Checks out a stable version of h5bp/server-configs-nginx and applies it
to the /etc/nginx folder
http://goo.gl/pBfB4W
Misc:
Adds "restart nginx" handler
closes #31