From 43e7555b09e829179a9c9dbcf1b0e8def22a2e8b Mon Sep 17 00:00:00 2001 From: Hazmo Date: Sun, 22 Apr 2018 11:00:35 +0000 Subject: [PATCH] Update common.py to add USE_APACHE_HEADERS set to false --- api/config/settings/common.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/config/settings/common.py b/api/config/settings/common.py index 5e895bea5..cab3b7607 100644 --- a/api/config/settings/common.py +++ b/api/config/settings/common.py @@ -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