mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +01:00
Make ssl configuratable
This commit is contained in:
parent
a187b202db
commit
7d2fd9056d
@ -35,7 +35,8 @@ app.secret_key = config['app-secret']
|
||||
|
||||
db.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))
|
||||
babel.init_app(app)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user