From e592c8dc1119c6820707633daefb0b12d0d67e39 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org>
Date: Tue, 21 Mar 2023 15:55:48 +0100
Subject: [PATCH] remove unusued downloadview backend

---
 Dockerfile                | 1 -
 env.example               | 2 --
 registry/settings/base.py | 8 --------
 3 files changed, 11 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 60f88a0..0632688 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,7 +26,6 @@ RUN DATABASE_URL=postgres://x/x \
     DEFAULT_CONTRACTEE_ZIP=x \
     DEFAULT_CONTRACTEE_DISTRICT=x \
     DEFAULT_CONTRACTEE_ICO_NUMBER=x \
-    DOWNLOADVIEW_BACKEND=x \
     python manage.py collectstatic --noinput --settings=registry.settings.production
 
 RUN bash -c "adduser --disabled-login --quiet --gecos app app &&  \
diff --git a/env.example b/env.example
index d492878..3a72fc2 100644
--- a/env.example
+++ b/env.example
@@ -15,5 +15,3 @@ DEFAULT_CONTRACTEE_STREET="Na MorĂ¡ni 360/3"
 DEFAULT_CONTRACTEE_ZIP="128 00"
 DEFAULT_CONTRACTEE_DISTRICT="Praha 2"
 DEFAULT_CONTRACTEE_ICO_NUMBER="71339698"
-
-DOWNLOADVIEW_BACKEND=django_downloadview.nginx.XAccelRedirectMiddleware
diff --git a/registry/settings/base.py b/registry/settings/base.py
index 7d07beb..9fe492d 100644
--- a/registry/settings/base.py
+++ b/registry/settings/base.py
@@ -193,14 +193,6 @@ MEDIA_URL = "/media/"
 
 DEFAULT_FILE_STORAGE = "django_downloadview.storage.SignedFileSystemStorage"
 
-#DOWNLOADVIEW_BACKEND = env.str("DOWNLOADVIEW_BACKEND")
-#DOWNLOADVIEW_RULES = [
-    #{
-        #"source_url": "/media/",
-        #"destination_url": "/media-nginx-optimized/",
-    #},
-#]
-
 ## Server
 
 USE_X_FORWARDED_HOST = True
-- 
GitLab