mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 05:39:16 +02:00
Fix #229: removed last hardcoded settings to protect audio files
This commit is contained in:
parent
9c02954e46
commit
2586444db2
6 changed files with 44 additions and 44 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue