bunkerweb 1.4.0
This commit is contained in:
6
core/gzip/confs/server-http/gzip.conf
Normal file
6
core/gzip/confs/server-http/gzip.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
{% if USE_GZIP == "yes" +%}
|
||||
gzip on;
|
||||
gzip_types {{ GZIP_TYPES }};
|
||||
gzip_comp_level {{ GZIP_COMP_LEVEL }};
|
||||
gzip_min_length {{ GZIP_MIN_LENGTH }};
|
||||
{% endif %}
|
||||
56
core/gzip/plugin.json
Normal file
56
core/gzip/plugin.json
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"id": "gzip",
|
||||
"order": 999,
|
||||
"name": "Gzip",
|
||||
"description": "Compress HTTP requests with the gzip algorithm.",
|
||||
"version": "0.1",
|
||||
"settings": {
|
||||
"USE_GZIP": {
|
||||
"context": "multisite",
|
||||
"default": "no",
|
||||
"help": "Use gzip",
|
||||
"id": "use-gzip",
|
||||
"label": "Use gzip",
|
||||
"regex": "^(yes|no)$",
|
||||
"type": "check"
|
||||
},
|
||||
"GZIP_TYPES": {
|
||||
"context": "multisite",
|
||||
"default": "application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype application/x-font-ttf application/x-javascript application/xhtml+xml application/xml font/eot font/opentype font/otf font/truetype image/svg+xml image/vnd.microsoft.icon image/x-icon image/x-win-bitmap text/css text/javascript text/plain text/xml",
|
||||
"help": "List of MIME types that will be compressed with gzip.",
|
||||
"id": "gzip-types",
|
||||
"label": "MIME types",
|
||||
"regex": "^.*$",
|
||||
"type": "text"
|
||||
},
|
||||
"GZIP_MIN_LENGTH": {
|
||||
"context": "multisite",
|
||||
"default": "1000",
|
||||
"help": "Minimum length for gzip compression.",
|
||||
"id": "gzip-min-length",
|
||||
"label": "Minimum length",
|
||||
"regex": "^.*$",
|
||||
"type": "text"
|
||||
},
|
||||
"GZIP_COMP_LEVEL": {
|
||||
"context": "multisite",
|
||||
"default": "5",
|
||||
"help": "The compression level of the gzip algorithm.",
|
||||
"id": "gzip-comp-level",
|
||||
"label": "Compression level",
|
||||
"regex": "^[1-9]$",
|
||||
"type": "select",
|
||||
"select": [
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7",
|
||||
"8",
|
||||
"9"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user