From c9c65295675efa75220be40b12c976ce53f5e938 Mon Sep 17 00:00:00 2001 From: Jonathan Rehm Date: Tue, 11 Jul 2017 09:35:55 -0700 Subject: [PATCH] Use SECRET_KEY from environment variable (#232) --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 237dc4ef..dbcaa5bd 100755 --- a/cps/web.py +++ b/cps/web.py @@ -218,7 +218,7 @@ lm = LoginManager(app) lm.init_app(app) lm.login_view = 'login' lm.anonymous_user = ub.Anonymous -app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT' +app.secret_key = os.getenv('SECRET_KEY', 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT') db.setup_db() if config.config_log_level == logging.DEBUG: