From 8de8a396b1f883500bf1b1377bc590c95365bea6 Mon Sep 17 00:00:00 2001 From: sunstep <73174517+sunstep@users.noreply.github.com> Date: Fri, 27 Sep 2024 09:45:37 +0200 Subject: [PATCH] Switch gzip to Brotli --- docs/how_to_setup_reverse_proxy.md | 39 +++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/docs/how_to_setup_reverse_proxy.md b/docs/how_to_setup_reverse_proxy.md index e19d8319..500689f6 100644 --- a/docs/how_to_setup_reverse_proxy.md +++ b/docs/how_to_setup_reverse_proxy.md @@ -46,17 +46,34 @@ server { listen [::]:80; server_name example.com; - gzip on; - gzip_disable "msie6"; - - gzip_vary on; - gzip_proxied any; - gzip_comp_level 6; - gzip_buffers 16 8k; - gzip_http_version 1.1; - gzip_min_length 256; - gzip_types - application/json; + brotli on; + brotli_comp_level 6; + brotli_types + text/css + text/plain + text/xml + text/x-component + text/javascript + application/x-javascript + application/javascript + application/json + application/manifest+json + application/vnd.api+json + application/xml + application/xhtml+xml + application/rss+xml + application/atom+xml + application/vnd.ms-fontobject + application/x-font-ttf + application/x-font-opentype + application/x-font-truetype + image/svg+xml + image/x-icon + image/vnd.microsoft.icon + font/ttf + font/eot + font/otf + font/opentype; location / { proxy_set_header X-Real-IP $remote_addr;