From f0ddbecd2b9ce1e398e2690ff71dc640fb60daa6 Mon Sep 17 00:00:00 2001 From: sunstep <73174517+sunstep@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:06:38 +0200 Subject: [PATCH] Switch Caddy from gzip to brotli --- docs/how_to_setup_reverse_proxy.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/how_to_setup_reverse_proxy.md b/docs/how_to_setup_reverse_proxy.md index e19d8319..3cac7365 100644 --- a/docs/how_to_setup_reverse_proxy.md +++ b/docs/how_to_setup_reverse_proxy.md @@ -145,14 +145,17 @@ Lastly, edit your Caddy config as needed: { reverse_proxy dawarich_app:3000 - encode gzip { + encode brotli { match { - content_type application/json + content_type 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 } } } + ``` +At your FQDN, do not include < > + --- Please note that the above configurations are just examples and that they contain the minimum configuration needed to make the reverse proxy work properly. Feel free to adjust the configuration to your own needs.