1
0
angie-conv-image/doc/examples/j2cfg-override
Konstantin Demin 6b13a28e52
doc: adjust j2cfg-override example
index.txt was too short to trigger compression, so it was padded to be at least 2 KiB.
2024-11-08 14:30:57 +03:00
..
j2cfg doc: add j2cfg-override example 2024-11-08 14:19:37 +03:00
site doc: add j2cfg-override example 2024-11-08 14:19:37 +03:00
static doc: adjust j2cfg-override example 2024-11-08 14:30:57 +03:00
docker-compose.yml bump version to 0.0.6 2024-11-08 14:19:37 +03:00
Dockerfile bump version to 0.0.6 2024-11-08 14:19:37 +03:00
README.md doc: add j2cfg-override example 2024-11-08 14:19:37 +03:00

container configuration override

consult Dockerfile or docker-compose.yml - both are simple and fine enough.


mostly same as simple static site except container configuration file j2cfg/override-compress-types.yml.

j2cfg/override-compress-types.yml:

compress_types: []

---

compress_types:
- text/plain

this effectively disables response compression for all mime types except text/plain.


in order to enable (!) response compression specify environment variable NGX_HTTP_CONFLOAD='gzip' or NGX_HTTP_MODULES='gzip brotli zstd' (for gzip, brotli and zstd).


Test URI e.g. with curl:

curl -v --compressed http://127.0.0.1:8080/index.html

curl -v --compressed http://127.0.0.1:8080/index.txt