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,7 +35,8 @@ app.secret_key = config['app-secret']
db.init_app(app) db.init_app(app)
rate_limiter.init_app(app) rate_limiter.init_app(app)
sslify = SSLify(app, permanent=True) 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)) socketio.init_app(app, message_queue=config["redis-uri"], path='gateway', async_mode=config.get("websockets-mode", None))
babel.init_app(app) babel.init_app(app)