Enable gzip compression on nodepool logs
Add a .htaccess to the nodepool log directory to enable gzip compression for text/text mime-types; e.g. the quite large .log files that nodepool outputs there Change-Id: Ie0b269835ebb8effbac0285b782d8add7b47db32
This commit is contained in:
3
modules/nodepool/files/nodepool-log.htaccess
Normal file
3
modules/nodepool/files/nodepool-log.htaccess
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<IfModule mod_deflate.c>
|
||||||
|
AddOutputFilterByType DEFLATE text/text
|
||||||
|
</IfModule>
|
@@ -267,6 +267,17 @@ class nodepool (
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# htaccess to enable the large .log files to send with gzip
|
||||||
|
# compression
|
||||||
|
file { "${image_log_document_root}/.htaccess":
|
||||||
|
ensure => present,
|
||||||
|
source => 'puppet:///modules/nodepool/nodepool-log.htaccess',
|
||||||
|
mode => '0644',
|
||||||
|
owner => 'nodepool',
|
||||||
|
group => 'nodepool',
|
||||||
|
require => File[$image_log_document_root],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if $sudo == true {
|
if $sudo == true {
|
||||||
|
Reference in New Issue
Block a user