From bb50aa690d2150a3cd92af9cac9f2b2ed1ca3070 Mon Sep 17 00:00:00 2001 From: translucentfocus <26986716+translucentfocus@users.noreply.github.com> Date: Sat, 26 Sep 2020 16:37:44 -0500 Subject: [PATCH] Gzip config for mainsail --- docs/installation.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 00192b4e..e7798993 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -148,6 +148,17 @@ server { listen 80 default_server; listen [::]:80 default_server; + gzip on; + + gzip_vary on; + gzip_proxied any; + gzip_proxied expired no-cache no-store private auth; + gzip_comp_level 4; + gzip_buffers 16 8k; + gzip_http_version 1.1; + gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml; + + access_log /var/log/nginx/mainsail-access.log; error_log /var/log/nginx/mainsail-error.log;