Make ssl configuratable

This commit is contained in:
Jeremy Zhang 2017-12-20 01:01:50 +00:00
parent a187b202db
commit 7d2fd9056d

View File

@ -35,6 +35,7 @@ app.secret_key = config['app-secret']
db.init_app(app)
rate_limiter.init_app(app)
if config.get("enable-ssl", False):
sslify = SSLify(app, permanent=True)
socketio.init_app(app, message_queue=config["redis-uri"], path='gateway', async_mode=config.get("websockets-mode", None))
babel.init_app(app)