From b6def586a146252194ae797cee9c31bd9d82a9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= <ciaranainsworth@posteo.net> Date: Fri, 3 May 2019 09:47:44 +0200 Subject: [PATCH] Resolve "Duplicate locations in nginx template" --- deploy/nginx.template | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/deploy/nginx.template b/deploy/nginx.template index bde535d4..78b8ff3d 100644 --- a/deploy/nginx.template +++ b/deploy/nginx.template @@ -109,16 +109,9 @@ server { # audio files once correct permission / authentication # has been checked on API side internal; - } - - # this is an internal location that is used to serve - # audio files once correct permission / authentication - # has been checked on API side - location /_protected/media { - internal; alias ${MEDIA_ROOT}; - } + # Comment the previous location and uncomment this one if you're storing # media files in a S3 bucket # location ~ /_protected/media/(.+) { -- GitLab