From 7d2fd9056d93b1c0d3ba25854fd156d731102132 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Wed, 20 Dec 2017 01:01:50 +0000 Subject: [PATCH] Make ssl configuratable --- webapp/titanembeds/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/titanembeds/app.py b/webapp/titanembeds/app.py index 6b3a43f..5fd5f62 100644 --- a/webapp/titanembeds/app.py +++ b/webapp/titanembeds/app.py @@ -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)