File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ map $http_accept $client_format {
4848
4949map $http_accept_encoding $normalized_encoding {
5050 default "";
51+ "~*zstd" "zstd";
5152 "~*br" "br";
5253 "~*gzip" "gzip";
5354}
Original file line number Diff line number Diff line change 4343
4444MIDDLEWARE = [
4545 'django_prometheus.middleware.PrometheusBeforeMiddleware' ,
46- "django .middleware.gzip.GZipMiddleware " ,
46+ "django_http_compression .middleware.HttpCompressionMiddleware " ,
4747 "django.middleware.http.ConditionalGetMiddleware" ,
4848 "django.middleware.security.SecurityMiddleware" ,
4949 "whitenoise.middleware.WhiteNoiseMiddleware" ,
8787 'SHOW_TOOLBAR_CALLBACK' : lambda request : SHOW_DEBUG_TOOLBAR ,
8888}
8989
90+
9091# Auth
9192AUTH_USER_MODEL = "authentication.DriveBCUser"
9293AUTH_PASSWORD_VALIDATORS = [
158159 "drf_spectacular" ,
159160 "drf_spectacular_sidecar" ,
160161 'django_prometheus' ,
162+ 'django_http_compression'
161163]
162164
163165LOCAL_APPS = [
Original file line number Diff line number Diff line change @@ -32,4 +32,5 @@ django-debug-toolbar==6.1.0
3232django-prometheus==2.4.1
3333django-redis==6.0.0
3434PyJWT==2.11.0
35- cryptography==46.0.5
35+ cryptography==46.0.5
36+ django-http-compression[brotli]==1.4.0
You can’t perform that action at this time.
0 commit comments