modifié: superTornado.py

This commit is contained in:
sidya82 2014-03-13 11:49:17 +01:00
parent c5036d0dc5
commit 7a7560e813

View File

@ -205,11 +205,8 @@ if __name__ == "__main__":
try : try :
log.printL("->Server Start ...",lvl.INFO) log.printL("->Server Start ...",lvl.INFO)
tornado.options.parse_command_line() tornado.options.parse_command_line()
http_server = tornado.httpserver.HTTPServer(application,ssl_options={ http_server = tornado.httpserver.HTTPServer(application)
"certfile": os.path.join("/ssl", "server.crt"), http_server.listen(portServ)
"keyfile": os.path.join("/ssl", "key.crt"),
})
http_server.listen(443)
log.printL("->Server Start Successfully !",lvl.SUCCESS) log.printL("->Server Start Successfully !",lvl.SUCCESS)
tornado.ioloop.IOLoop.instance().start() tornado.ioloop.IOLoop.instance().start()
except Exception, e : except Exception, e :