From 7986bc94811b9b9474403cd42fe1077bd26ffddb Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Wed, 17 Jul 2024 18:59:19 +0300 Subject: [PATCH] split/improve module configuration --- angie/snip.dist/http-brotli-static.conf | 1 + angie/snip.dist/http-brotli.conf | 2 ++ .../snip.dist/{http-brotli.conf.j2 => http-brotli.modconf.j2} | 2 +- angie/snip.dist/http-gunzip | 1 + angie/snip.dist/http-gunzip.conf | 3 ++- angie/snip.dist/http-gzip-static.conf | 1 + angie/snip.dist/http-gzip.conf | 2 ++ angie/snip.dist/{http-gzip.conf.j2 => http-gzip.modconf.j2} | 2 +- angie/snip.dist/http-zstd-static.conf | 1 + angie/snip.dist/http-zstd.conf | 2 ++ angie/snip.dist/{http-zstd.conf.j2 => http-zstd.modconf.j2} | 2 +- 11 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 angie/snip.dist/http-brotli-static.conf create mode 100644 angie/snip.dist/http-brotli.conf rename angie/snip.dist/{http-brotli.conf.j2 => http-brotli.modconf.j2} (99%) create mode 100644 angie/snip.dist/http-gunzip create mode 100644 angie/snip.dist/http-gzip-static.conf create mode 100644 angie/snip.dist/http-gzip.conf rename angie/snip.dist/{http-gzip.conf.j2 => http-gzip.modconf.j2} (99%) create mode 100644 angie/snip.dist/http-zstd-static.conf create mode 100644 angie/snip.dist/http-zstd.conf rename angie/snip.dist/{http-zstd.conf.j2 => http-zstd.modconf.j2} (99%) diff --git a/angie/snip.dist/http-brotli-static.conf b/angie/snip.dist/http-brotli-static.conf new file mode 100644 index 0000000..11a1aaf --- /dev/null +++ b/angie/snip.dist/http-brotli-static.conf @@ -0,0 +1 @@ +brotli_static on; \ No newline at end of file diff --git a/angie/snip.dist/http-brotli.conf b/angie/snip.dist/http-brotli.conf new file mode 100644 index 0000000..0bd698f --- /dev/null +++ b/angie/snip.dist/http-brotli.conf @@ -0,0 +1,2 @@ +include snip.d/http-brotli.modconf; +brotli on; \ No newline at end of file diff --git a/angie/snip.dist/http-brotli.conf.j2 b/angie/snip.dist/http-brotli.modconf.j2 similarity index 99% rename from angie/snip.dist/http-brotli.conf.j2 rename to angie/snip.dist/http-brotli.modconf.j2 index 332b8d0..5bdf5a7 100644 --- a/angie/snip.dist/http-brotli.conf.j2 +++ b/angie/snip.dist/http-brotli.modconf.j2 @@ -11,4 +11,4 @@ brotli_buffers 32 16k; brotli_types ## sourced from mime-types.compress.txt {{ mime_types | indent(4) }} -; +; \ No newline at end of file diff --git a/angie/snip.dist/http-gunzip b/angie/snip.dist/http-gunzip new file mode 100644 index 0000000..19dd7da --- /dev/null +++ b/angie/snip.dist/http-gunzip @@ -0,0 +1 @@ +gunzip_buffers 16 16k; \ No newline at end of file diff --git a/angie/snip.dist/http-gunzip.conf b/angie/snip.dist/http-gunzip.conf index 19dd7da..16c2020 100644 --- a/angie/snip.dist/http-gunzip.conf +++ b/angie/snip.dist/http-gunzip.conf @@ -1 +1,2 @@ -gunzip_buffers 16 16k; \ No newline at end of file +include snip.d/http-gunzip.modconf; +gunzip on; \ No newline at end of file diff --git a/angie/snip.dist/http-gzip-static.conf b/angie/snip.dist/http-gzip-static.conf new file mode 100644 index 0000000..aed8556 --- /dev/null +++ b/angie/snip.dist/http-gzip-static.conf @@ -0,0 +1 @@ +gzip_static on; \ No newline at end of file diff --git a/angie/snip.dist/http-gzip.conf b/angie/snip.dist/http-gzip.conf new file mode 100644 index 0000000..0b070c2 --- /dev/null +++ b/angie/snip.dist/http-gzip.conf @@ -0,0 +1,2 @@ +include snip.d/http-gzip.modconf; +gzip on; \ No newline at end of file diff --git a/angie/snip.dist/http-gzip.conf.j2 b/angie/snip.dist/http-gzip.modconf.j2 similarity index 99% rename from angie/snip.dist/http-gzip.conf.j2 rename to angie/snip.dist/http-gzip.modconf.j2 index 42a9ba8..42db9f1 100644 --- a/angie/snip.dist/http-gzip.conf.j2 +++ b/angie/snip.dist/http-gzip.modconf.j2 @@ -12,4 +12,4 @@ gzip_proxied any; gzip_types ## sourced from mime-types.compress.txt {{ mime_types | indent(4) }} -; +; \ No newline at end of file diff --git a/angie/snip.dist/http-zstd-static.conf b/angie/snip.dist/http-zstd-static.conf new file mode 100644 index 0000000..1ef178e --- /dev/null +++ b/angie/snip.dist/http-zstd-static.conf @@ -0,0 +1 @@ +zstd_static on; \ No newline at end of file diff --git a/angie/snip.dist/http-zstd.conf b/angie/snip.dist/http-zstd.conf new file mode 100644 index 0000000..7dbb8c2 --- /dev/null +++ b/angie/snip.dist/http-zstd.conf @@ -0,0 +1,2 @@ +include snip.d/http-zstd.modconf; +zstd on; \ No newline at end of file diff --git a/angie/snip.dist/http-zstd.conf.j2 b/angie/snip.dist/http-zstd.modconf.j2 similarity index 99% rename from angie/snip.dist/http-zstd.conf.j2 rename to angie/snip.dist/http-zstd.modconf.j2 index 751c4e6..fb4d984 100644 --- a/angie/snip.dist/http-zstd.conf.j2 +++ b/angie/snip.dist/http-zstd.modconf.j2 @@ -9,4 +9,4 @@ zstd_buffers 32 16k; zstd_types ## sourced from mime-types.compress.txt {{ mime_types | indent(4) }} -; +; \ No newline at end of file