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