From 5ef2241f59d3ab5d0ffb0a4806104ca3faf8bc06 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Tue, 19 Jun 2018 08:13:34 +0000
Subject: [PATCH] Revert "Remove obsolete /_protected/media config"

This reverts commit f13a1d2445294b271601fdc45bd4ead165a90081
---
 deploy/nginx.conf | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/deploy/nginx.conf b/deploy/nginx.conf
index b403f4388f..c8f64cc384 100644
--- a/deploy/nginx.conf
+++ b/deploy/nginx.conf
@@ -79,6 +79,14 @@ server {
         alias /srv/funkwhale/data/media/;
     }
 
+    location /_protected/media {
+        # this is an internal location that is used to serve
+        # audio files once correct permission / authentication
+        # has been checked on API side
+        internal;
+        alias   /srv/funkwhale/data/media;
+    }
+
     location /_protected/music {
         # this is an internal location that is used to serve
         # audio files once correct permission / authentication
-- 
GitLab