modifié: superTornado.py
This commit is contained in:
parent
93ca9748dc
commit
cbf4b3fe89
@ -151,8 +151,7 @@ application = tornado.web.Application([
|
|||||||
(r"/unauthorized", UnauthorizedHandler),
|
(r"/unauthorized", UnauthorizedHandler),
|
||||||
(r"/disconnection", DisconnectionHandler),
|
(r"/disconnection", DisconnectionHandler),
|
||||||
(r"/socket", WSocketHandler),
|
(r"/socket", WSocketHandler),
|
||||||
(r"/ssl/(.*)", tornado.web.StaticFileHandler,{"path":"./ssl"},),
|
(r"/(favicon.ico)", tornado.web.StaticFileHandler,{"path":"./v/images"},),
|
||||||
(r"/(favicon.ico)", tornado.web.StaticFileHandler,{"path":"./v/"},),
|
|
||||||
(r"/style/(.*)", tornado.web.StaticFileHandler,{"path":"./v/style"},),
|
(r"/style/(.*)", tornado.web.StaticFileHandler,{"path":"./v/style"},),
|
||||||
(r"/images/(.*)", tornado.web.StaticFileHandler,{"path":"./v/images"},),
|
(r"/images/(.*)", tornado.web.StaticFileHandler,{"path":"./v/images"},),
|
||||||
(r"/js/(.*)", tornado.web.StaticFileHandler,{"path":"./v/js"},)],
|
(r"/js/(.*)", tornado.web.StaticFileHandler,{"path":"./v/js"},)],
|
||||||
@ -206,10 +205,12 @@ 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()
|
||||||
|
print "lol"
|
||||||
http_server = tornado.httpserver.HTTPServer(application,ssl_options={
|
http_server = tornado.httpserver.HTTPServer(application,ssl_options={
|
||||||
"certfile": "/ssl/server.crt",
|
"certfile": "/ssl/server.crt",
|
||||||
"keyfile": "/ssl/server.key",
|
"keyfile": "/ssl/server.key",
|
||||||
})
|
})
|
||||||
|
print "lol1"
|
||||||
http_server.listen(433)
|
http_server.listen(433)
|
||||||
log.printL("->Server Start Successfully !",lvl.SUCCESS)
|
log.printL("->Server Start Successfully !",lvl.SUCCESS)
|
||||||
tornado.ioloop.IOLoop.instance().start()
|
tornado.ioloop.IOLoop.instance().start()
|
||||||
|
BIN
v/favicon.ico
BIN
v/favicon.ico
Binary file not shown.
Before Width: | Height: | Size: 318 B |
Reference in New Issue
Block a user