From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 7 Feb 2023 18:12:36 +0000 (-0800) Subject: Changes the default setting for compression to enabled X-Git-Tag: v1.13.0~1^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d777343fbf805b101abd32d432f60339ada71c8;p=thirdparty%2Fpaperless-ngx.git Changes the default setting for compression to enabled --- diff --git a/docs/configuration.md b/docs/configuration.md index 6e210a7209..27b3f1b287 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -762,7 +762,7 @@ should be a valid crontab(5) expression describing when to run. : Enables compression of the responses from the webserver. -: Defaults to 0, disabling compression. +: Defaults to 1, enabling compression. !!! note diff --git a/src/paperless/settings.py b/src/paperless/settings.py index b94ead3b91..5cac5e6217 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -298,7 +298,7 @@ MIDDLEWARE = [ ] # Optional to enable compression -if __get_boolean("PAPERLESS_ENABLE_COMPRESSION"): +if __get_boolean("PAPERLESS_ENABLE_COMPRESSION", "yes"): # pragma: nocover MIDDLEWARE.insert(0, "compression_middleware.middleware.CompressionMiddleware") ROOT_URLCONF = "paperless.urls"