Compression for koel

This commit is contained in:
Bob Mottram 2017-05-25 12:31:04 +01:00
parent 4bfeae5c98
commit 71ab9ffb5f
1 changed files with 4 additions and 0 deletions

View File

@ -366,6 +366,7 @@ function install_koel_main {
echo '' >> $koel_nginx_site
function_check nginx_compress
nginx_compress $KOEL_DOMAIN_NAME
echo ' gzip_comp_level 9;' >> $koel_nginx_site
echo '' >> $koel_nginx_site
echo ' # Security' >> $koel_nginx_site
function_check nginx_ssl
@ -429,6 +430,7 @@ function install_koel_main {
echo '' >> $koel_nginx_site
function_check nginx_compress
nginx_compress $KOEL_DOMAIN_NAME
echo ' gzip_comp_level 9;' >> $koel_nginx_site
echo '' >> $koel_nginx_site
echo ' # Logs' >> $koel_nginx_site
echo ' access_log /dev/null;' >> $koel_nginx_site
@ -475,6 +477,8 @@ function install_koel_main {
echo '' >> $koel_nginx_site
echo '}' >> $koel_nginx_site
sed -i 's|gzip_types.*|gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;|g' $koel_nginx_site
function_check configure_php
configure_php