]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Changes the default setting for compression to enabled
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Tue, 7 Feb 2023 18:12:36 +0000 (10:12 -0800)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Sun, 12 Feb 2023 22:45:51 +0000 (14:45 -0800)
docs/configuration.md
src/paperless/settings.py

index 6e210a720988b8f5524c3b90c4412729eb16fb33..27b3f1b28787af576aecf7f5c75002fac91deb62 100644 (file)
@@ -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
 
index b94ead3b9135e54bb287d82a976805ba79694272..5cac5e621769a97b58bbc384e00f4ba5da926c97 100644 (file)
@@ -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"