|
|
@ -185,10 +185,12 @@ def main():
|
|
|
|
if ssl_mode:
|
|
|
|
if ssl_mode:
|
|
|
|
# @todo finalise SSL config, but this should get you in the right direction if you need it.
|
|
|
|
# @todo finalise SSL config, but this should get you in the right direction if you need it.
|
|
|
|
eventlet.wsgi.server(eventlet.wrap_ssl(eventlet.listen((host, port), s_type),
|
|
|
|
eventlet.wsgi.server(eventlet.wrap_ssl(eventlet.listen((host, port), s_type),
|
|
|
|
|
|
|
|
log=logger,
|
|
|
|
certfile='cert.pem',
|
|
|
|
certfile='cert.pem',
|
|
|
|
keyfile='privkey.pem',
|
|
|
|
keyfile='privkey.pem',
|
|
|
|
server_side=True), app)
|
|
|
|
server_side=True), app)
|
|
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
eventlet.wsgi.server(eventlet.listen((host, int(port)), s_type), app)
|
|
|
|
eventlet.wsgi.server(eventlet.listen((host, int(port)), s_type), app,
|
|
|
|
|
|
|
|
log=logger)
|
|
|
|
|
|
|
|
|
|
|
|