Update common.py to add USE_APACHE_HEADERS set to false

This commit is contained in:
Hazmo 2018-04-22 11:00:35 +00:00
parent 9e5a0f87e8
commit 43e7555b09
1 changed files with 5 additions and 0 deletions

View File

@ -390,6 +390,11 @@ REST_FRAMEWORK = {
ATOMIC_REQUESTS = False
USE_X_FORWARDED_HOST = True
USE_X_FORWARDED_PORT = True
# Wether we should use Apache or Nginx headers when serving audio files
# Default to Nginx
USE_APACHE_HEADERS = False
# 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