Commit 6de3f506feefd654d9e334b87a463b6ea25099e8

Authored by Earth Ugat
1 parent 7dee1b74

Version 0.5.3. Fix Wordpress config template bug.

  1 +## 0.5.3 - 2017-01-13
  2 +### Fixed
  3 +- Fix misplaced 'end' directive in wordpress config template.
  4 +
  5 +### Changed
  6 +- Update default nginx version.
  7 +
1 8 ## 0.5.2 - 2016-12-07
2 9 ### Added
3 10 - Add different default webserver configuration for plugins on Wordpress sites.
... ...
... ... @@ -303,7 +303,7 @@ default['postfix']['main']['mydestination'] =
303 303 #
304 304 # nginx cookbook
305 305 #
306   -default['nginx']['version'] = '1.9.15'
  306 +default['nginx']['version'] = '1.11.8'
307 307 default['nginx']['install_method'] = 'package'
308 308 default['nginx']['package_name'] = 'nginx'
309 309 default['nginx']['repo_source'] = 'nginx'
... ...
... ... @@ -4,7 +4,7 @@ maintainer_email 'sysadmin@chromedia.com'
4 4 license 'Apache License'
5 5 description 'Simplifies setup of Nginx+PHP-FPM in Chromedia.'
6 6 long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7   -version '0.5.2'
  7 +version '0.5.3'
8 8
9 9 {
10 10 'openssl' => '4.4.0',
... ...
... ... @@ -20,6 +20,7 @@ location ~* ^/<%= @subpath %>.+\.(<%= @static_types.join('|') %>)$ {
20 20 <% @add_statements.each do |ads| -%>
21 21 <%= ads %>
22 22
  23 +<% end -%>
23 24 # For Wordpress plugin (if used): Wordfence
24 25 location ~ ^/<%= @subpath %>wp-content/plugins/wordfence/(tmp|lib) {
25 26 deny all;
... ... @@ -63,7 +64,6 @@ location ~ ^/<%= @subpath %>wp-content/uploads/dlm_uploads {
63 64 deny all;
64 65 }
65 66
66   -<% end -%>
67 67 # Deny access to any files with a .php extension in the uploads directory
68 68 # Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
69 69 location ~* /<%= @subpath %>(.+/)*(?:uploads|files)/.*\.php$ {
... ...