run_server.py 文件源码

python
阅读 70 收藏 0 点赞 0 评论 0

项目:jumpsever 作者: jacksonyoudi 项目源码 文件源码
def __init__(self):
        handlers = [
            (r'/monitor', MonitorHandler),
            (r'/terminal', WebTerminalHandler),
            (r'/kill', WebTerminalKillHandler),
            (r'/exec', ExecHandler),
        ]

        setting = {
            'cookie_secret': 'DFksdfsasdfkasdfFKwlwfsdfsa1204mx',
            'template_path': os.path.join(os.path.dirname(__file__), 'templates'),
            'static_path': os.path.join(os.path.dirname(__file__), 'static'),
            'debug': False,
        }

        tornado.web.Application.__init__(self, handlers, **setting)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号