|
|
@ -9,6 +9,7 @@ import getopt
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
import signal
|
|
|
|
import signal
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
|
|
|
|
import socket
|
|
|
|
|
|
|
|
|
|
|
|
from . import store, changedetection_app, content_fetcher
|
|
|
|
from . import store, changedetection_app, content_fetcher
|
|
|
|
from . import __version__
|
|
|
|
from . import __version__
|
|
|
@ -126,11 +127,11 @@ 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)),
|
|
|
|
eventlet.wsgi.server(eventlet.wrap_ssl(eventlet.listen((host, port), socket.AF_INET6),
|
|
|
|
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))), app)
|
|
|
|
eventlet.wsgi.server(eventlet.listen((host, int(port)), socket.AF_INET6), app)
|
|
|
|
|
|
|
|
|
|
|
|