* Fri Sep 12 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.2-8.sme
- enable mod deflate for ibays [SME: 12076] ibays{modDeflate} enabeld by default
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
|||||||
*.log
|
*.log
|
||||||
*spec-20*
|
*spec-20*
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
|
*.tar.xz
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
contribs10
|
|
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
use esmith::AccountsDB;
|
||||||
|
my $accounts = esmith::AccountsDB->open_ro;
|
||||||
|
|
||||||
|
use esmith::DomainsDB;
|
||||||
|
my $domains = esmith::DomainsDB->open_ro;
|
||||||
|
|
||||||
|
$OUT = "";
|
||||||
|
my $status = $modDeflate{status} || 'disabled';
|
||||||
|
return "# mod_deflate disabled\n" if $status eq "disabled";
|
||||||
|
|
||||||
|
my $compression = $modDeflate{level} || '5';
|
||||||
|
|
||||||
|
my $ibay = $virtualHostContent;
|
||||||
|
my $status = $accounts->get_prop($ibay, "modDeflate") || "enabled";
|
||||||
|
return "# mod_deflate disabled for $ibay\n" if $status eq "disabled";
|
||||||
|
$OUT = '
|
||||||
|
<filesMatch "\\.(css|js|html|txt)\$">
|
||||||
|
SetOutputFilter DEFLATE
|
||||||
|
</filesMatch>
|
||||||
|
';
|
||||||
|
|
||||||
|
}
|
Binary file not shown.
@@ -6,7 +6,7 @@ Summary: SME server mod_deflate activation
|
|||||||
%define name smeserver-mod_deflate
|
%define name smeserver-mod_deflate
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
%define version 1.2
|
%define version 1.2
|
||||||
%define release 7
|
%define release 8
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: Freely distributable
|
License: Freely distributable
|
||||||
@@ -20,6 +20,10 @@ Requires: smeserver-release >= 8
|
|||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 12 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.2-8.sme
|
||||||
|
- enable mod deflate for ibays [SME: 12076]
|
||||||
|
ibays{modDeflate} enabeld by default
|
||||||
|
|
||||||
* Sun Sep 08 2024 fix-e-smith-pkg.sh by Trevor Batley <trevor@batley.id.au> 1.2-7.sme
|
* Sun Sep 08 2024 fix-e-smith-pkg.sh by Trevor Batley <trevor@batley.id.au> 1.2-7.sme
|
||||||
- Fix e-smith references in smeserver-mod_deflate [SME: 12732]
|
- Fix e-smith references in smeserver-mod_deflate [SME: 12732]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user