Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tornado.web
- import tornado.httpserver
- import tornado.ioloop
- class DefaultHandler(tornado.web.RequestHandler):
- def get(self):
- self.write("Nothing to see here\n")
- if __name__ == "__main__":
- app = tornado.web.Application([
- (r"/", DefaultHandler),
- # (r"/RPC2", MainHandler, dict(core=core))
- ])
- ssl_options = {'certfile': '/home/kamil/code/bcfg2-repo/bcfg2.crt',
- 'keyfile': '/home/kamil/code/bcfg2-repo/bcfg2.key',
- }
- server = tornado.httpserver.HTTPServer(app, ssl_options)
- server.listen(6790)
- tornado.ioloop.IOLoop.instance().set_blocking_log_threshold(0.5)
- tornado.ioloop.IOLoop.instance().start()
Add Comment
Please, Sign In to add comment