turn on xheaders

logs real IP, rather than proxy IP
This commit is contained in:
Min RK
2015-01-28 09:56:23 -08:00
parent 353c70e8b0
commit c608e4a915

View File

@@ -878,7 +878,7 @@ class JupyterHub(Application):
pc.start()
# start the webserver
http_server = tornado.httpserver.HTTPServer(self.tornado_application)
http_server = tornado.httpserver.HTTPServer(self.tornado_application, xheaders=True)
http_server.listen(self.hub_port)
# run the cleanup step (in a new loop, because the interrupted one is unclean)