Fix #229: removed last hardcoded settings to protect audio files

This commit is contained in:
Eliot Berriot 2018-05-24 21:34:59 +02:00
parent 9c02954e46
commit 2586444db2
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 44 additions and 44 deletions

View file

@ -433,12 +433,6 @@ USE_X_FORWARDED_PORT = True
REVERSE_PROXY_TYPE = env('REVERSE_PROXY_TYPE', default='nginx')
assert REVERSE_PROXY_TYPE in ['apache2', 'nginx'], 'Unsupported REVERSE_PROXY_TYPE'
# Wether we should check user permission before serving audio files (meaning
# return an obfuscated url)
# This require a special configuration on the reverse proxy side
# See https://wellfire.co/learn/nginx-django-x-accel-redirects/ for example
PROTECT_AUDIO_FILES = env.bool('PROTECT_AUDIO_FILES', default=True)
# Which path will be used to process the internal redirection
# **DO NOT** put a slash at the end
PROTECT_FILES_PATH = env('PROTECT_FILES_PATH', default='/_protected')