mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Make ssl configuratable
This commit is contained in:
parent
a187b202db
commit
7d2fd9056d
@ -35,6 +35,7 @@ app.secret_key = config['app-secret']
|
|||||||
|
|
||||||
db.init_app(app)
|
db.init_app(app)
|
||||||
rate_limiter.init_app(app)
|
rate_limiter.init_app(app)
|
||||||
|
if config.get("enable-ssl", False):
|
||||||
sslify = SSLify(app, permanent=True)
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user