Make redirects work properly behind a reverse proxy

(imported from commit 7ffb0b10e796ab27a8a4d028195637c9dca74aa7)
This commit is contained in:
Keegan McAllister 2012-10-09 17:52:48 -04:00
parent 5e70b5a291
commit 1fded25025
1 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,9 @@ SHARED_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# URL where Django code posts to the Tornado code to notify of new messages
NOTIFY_WAITING_CLIENTS_URL = 'http://localhost:9993/notify_waiting_clients'
# Make redirects work properly behind a reverse proxy
USE_X_FORWARDED_HOST = True
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',