aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-10 09:39:46 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-10 09:39:46 +0200
commitcaf4951cd2989f5e2f09234f96792aa9d3271a71 (patch)
treec0cd18b1d4ee9a7ca55ef13811befd976567f2b8 /src/bootstrap.py
parentupdated default email address (diff)
downloadnewspipe-caf4951cd2989f5e2f09234f96792aa9d3271a71.tar.gz
newspipe-caf4951cd2989f5e2f09234f96792aa9d3271a71.tar.bz2
newspipe-caf4951cd2989f5e2f09234f96792aa9d3271a71.zip
call SSLify in bootstrap
Diffstat (limited to 'src/bootstrap.py')
-rw-r--r--src/bootstrap.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap.py b/src/bootstrap.py
index 912c35ae..88630130 100644
--- a/src/bootstrap.py
+++ b/src/bootstrap.py
@@ -41,6 +41,10 @@ application.config['PREFERRED_URL_SCHEME'] = scheme
set_logging(conf.LOG_PATH, log_level=conf.LOG_LEVEL)
+if conf.ON_HEROKU:
+ from flask_sslify import SSLify
+ SSLify(application)
+
# Create secrey key so we can use sessions
application.config['SECRET_KEY'] = getattr(conf, 'WEBSERVER_SECRET', None)
if not application.config['SECRET_KEY']:
bgstack15