Changes the default setting for compression to enabled

This commit is contained in:
Trenton H 2023-02-07 10:12:36 -08:00
parent 3b0fa4f707
commit 0d777343fb
2 changed files with 2 additions and 2 deletions

View File

@ -762,7 +762,7 @@ should be a valid crontab(5) expression describing when to run.
: Enables compression of the responses from the webserver. : Enables compression of the responses from the webserver.
: Defaults to 0, disabling compression. : Defaults to 1, enabling compression.
!!! note !!! note

View File

@ -298,7 +298,7 @@ MIDDLEWARE = [
] ]
# Optional to enable compression # 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") MIDDLEWARE.insert(0, "compression_middleware.middleware.CompressionMiddleware")
ROOT_URLCONF = "paperless.urls" ROOT_URLCONF = "paperless.urls"