From 324dded6d29d6deb09d9c3b4a5ec8f63379ee67a Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Mon, 6 May 2024 16:58:58 +0300 Subject: [PATCH] zstd --- conf.avail/http-zstd.conf | 24 ++++++++++++++++++++++++ conf.d/http-zstd.conf | 1 + mod.avail/http-zstd.conf | 2 ++ mod.d/http-zstd.conf | 1 + 4 files changed, 28 insertions(+) create mode 100644 conf.avail/http-zstd.conf create mode 120000 conf.d/http-zstd.conf create mode 100644 mod.avail/http-zstd.conf create mode 120000 mod.d/http-zstd.conf diff --git a/conf.avail/http-zstd.conf b/conf.avail/http-zstd.conf new file mode 100644 index 0000000..4bad68a --- /dev/null +++ b/conf.avail/http-zstd.conf @@ -0,0 +1,24 @@ +zstd on; + +## default is 1 +zstd_comp_level 2; + +zstd_min_length 1024; +zstd_buffers 32 16k; + +zstd_types + application/atom+xml + application/javascript + application/json + application/vnd.api+json + application/rss+xml + application/x-javascript + application/xhtml+xml + application/xml + image/svg+xml + image/x-icon + text/css + text/javascript + text/plain + text/xml +; diff --git a/conf.d/http-zstd.conf b/conf.d/http-zstd.conf new file mode 120000 index 0000000..6178394 --- /dev/null +++ b/conf.d/http-zstd.conf @@ -0,0 +1 @@ +../conf.avail/http-zstd.conf \ No newline at end of file diff --git a/mod.avail/http-zstd.conf b/mod.avail/http-zstd.conf new file mode 100644 index 0000000..9df29cb --- /dev/null +++ b/mod.avail/http-zstd.conf @@ -0,0 +1,2 @@ +load_module modules/ngx_http_zstd_filter_module.so; +load_module modules/ngx_http_zstd_static_module.so; diff --git a/mod.d/http-zstd.conf b/mod.d/http-zstd.conf new file mode 120000 index 0000000..7d4521c --- /dev/null +++ b/mod.d/http-zstd.conf @@ -0,0 +1 @@ +../mod.avail/http-zstd.conf \ No newline at end of file