Skip to content
Snippets Groups Projects
Commit 0695cd85 authored by R En's avatar R En
Browse files

Update common.py with future proof REVERSE_PROXY_TYPE setting

parent 5879d2d6
No related branches found
No related tags found
No related merge requests found
......@@ -391,9 +391,10 @@ 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
# Wether we should use Apache, Nginx (or other) headers when serving audio files
# Default to Nginx
USE_APACHE_HEADERS = False
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment