mirror of https://github.com/tp4a/teleport
增强:配合nginx前置,可以记录登录用户的原始IP而不是nginx服务器的IP。
parent
50d814869c
commit
0a3c99dc05
|
@ -149,7 +149,7 @@ class WebApp:
|
|||
fix_controller()
|
||||
_app = tornado.web.Application(controllers, **settings)
|
||||
|
||||
server = tornado.httpserver.HTTPServer(_app)
|
||||
server = tornado.httpserver.HTTPServer(_app, xheaders=True)
|
||||
# server = tornado.httpserver.HTTPServer(_app, ssl_options={
|
||||
# "certfile": os.path.join(cfg.data_path, 'cert', "server.pem"),
|
||||
# "keyfile": os.path.join(cfg.data_path, 'cert', "server.key"),
|
||||
|
|
Loading…
Reference in New Issue