mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
turn on xheaders
logs real IP, rather than proxy IP
This commit is contained in:
@@ -878,7 +878,7 @@ class JupyterHub(Application):
|
|||||||
pc.start()
|
pc.start()
|
||||||
|
|
||||||
# start the webserver
|
# 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)
|
http_server.listen(self.hub_port)
|
||||||
# run the cleanup step (in a new loop, because the interrupted one is unclean)
|
# run the cleanup step (in a new loop, because the interrupted one is unclean)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user