Browse Source

HUE-4450 [desktop] Fix HTTPS termination using X-Forwarded-Proto header

Thomas Poepping 9 years ago
parent
commit
3884632527
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/settings.py

+ 1 - 1
desktop/core/src/desktop/settings.py

@@ -436,7 +436,7 @@ USE_X_FORWARDED_HOST = desktop.conf.USE_X_FORWARDED_HOST.get()
 
 
 # Support HTTPS load-balancing
 # Support HTTPS load-balancing
 if desktop.conf.SECURE_PROXY_SSL_HEADER.get():
 if desktop.conf.SECURE_PROXY_SSL_HEADER.get():
-  SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')
+  SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
 
 
 # Add last activity tracking and idle session timeout
 # Add last activity tracking and idle session timeout
 if 'useradmin' in [app.name for app in appmanager.DESKTOP_APPS]:
 if 'useradmin' in [app.name for app in appmanager.DESKTOP_APPS]: