bunkerweb 1.4.0
This commit is contained in:
6
core/brotli/confs/server-http/brotli.conf
Normal file
6
core/brotli/confs/server-http/brotli.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
{% if USE_BROTLI == "yes" +%}
|
||||
brotli on;
|
||||
brotli_types {{ BROTLI_TYPES }};
|
||||
brotli_comp_level {{ BROTLI_COMP_LEVEL }};
|
||||
brotli_min_length {{ BROTLI_MIN_LENGTH }};
|
||||
{% endif %}
|
||||
58
core/brotli/plugin.json
Normal file
58
core/brotli/plugin.json
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"id": "brotli",
|
||||
"order": 999,
|
||||
"name": "Brotli",
|
||||
"description": "Compress HTTP requests with the brotli algorithm.",
|
||||
"version": "0.1",
|
||||
"settings": {
|
||||
"USE_BROTLI": {
|
||||
"context": "multisite",
|
||||
"default": "no",
|
||||
"help": "Use brotli",
|
||||
"id": "use-brotli",
|
||||
"label": "Use brotli",
|
||||
"regex": "^(yes|no)$",
|
||||
"type": "check"
|
||||
},
|
||||
"BROTLI_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 brotli.",
|
||||
"id": "brotli-types",
|
||||
"label": "MIME types",
|
||||
"regex": "^.*$",
|
||||
"type": "text"
|
||||
},
|
||||
"BROTLI_MIN_LENGTH": {
|
||||
"context": "multisite",
|
||||
"default": "1000",
|
||||
"help": "Minimum length for brotli compression.",
|
||||
"id": "brotli-min-length",
|
||||
"label": "Minimum length",
|
||||
"regex": "^.*$",
|
||||
"type": "text"
|
||||
},
|
||||
"BROTLI_COMP_LEVEL": {
|
||||
"context": "multisite",
|
||||
"default": "6",
|
||||
"help": "The compression level of the brotli algorithm.",
|
||||
"id": "brotli-comp-level",
|
||||
"label": "Compression level",
|
||||
"regex": "^([1-9]|10|11)$",
|
||||
"type": "select",
|
||||
"select": [
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7",
|
||||
"8",
|
||||
"9",
|
||||
"10",
|
||||
"11"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user