From 713f222e19975e5d48e50eb0a72685077c52ce70 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 17 Apr 2015 10:37:17 -0700 Subject: [PATCH] trust proxy headers in single-user server required for request protocol, ip checks to work properly --- jupyterhub/singleuser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jupyterhub/singleuser.py b/jupyterhub/singleuser.py index 896dea3c..ccc65a21 100644 --- a/jupyterhub/singleuser.py +++ b/jupyterhub/singleuser.py @@ -138,6 +138,7 @@ class SingleUserNotebookApp(NotebookApp): hub_api_url = Unicode(config=True) aliases = aliases open_browser = False + trust_xheaders = True login_handler_class = JupyterHubLoginHandler logout_handler_class = JupyterHubLogoutHandler