mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Adds option to enable compression of webserver responses
This commit is contained in:
		| @@ -297,6 +297,10 @@ MIDDLEWARE = [ | ||||
|     "django.middleware.clickjacking.XFrameOptionsMiddleware", | ||||
| ] | ||||
|  | ||||
| # Optional to enable compression | ||||
| if __get_boolean("PAPERLESS_ENABLE_COMPRESSION"): | ||||
|     MIDDLEWARE.insert(0, "compression_middleware.middleware.CompressionMiddleware") | ||||
|  | ||||
| ROOT_URLCONF = "paperless.urls" | ||||
|  | ||||
| FORCE_SCRIPT_NAME = os.getenv("PAPERLESS_FORCE_SCRIPT_NAME") | ||||
| @@ -314,7 +318,6 @@ _CELERY_REDIS_URL, _CHANNELS_REDIS_URL = _parse_redis_url( | ||||
|     os.getenv("PAPERLESS_REDIS", None), | ||||
| ) | ||||
|  | ||||
| # TODO: what is this used for? | ||||
| TEMPLATES = [ | ||||
|     { | ||||
|         "BACKEND": "django.template.backends.django.DjangoTemplates", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Trenton H
					Trenton H