Browse Source

Grab secret keys from ENV too

Getty Ritter 4 years ago
parent
commit
1c38a45f1a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lc/config.py

+ 2 - 2
lc/config.py

@@ -7,9 +7,9 @@ import playhouse.sqlite_ext
 
 db = playhouse.sqlite_ext.SqliteExtDatabase(None)
 per_page = 50
-serializer = itsdangerous.URLSafeSerializer("TEMP KEY")
+serializer = itsdangerous.URLSafeSerializer(os.getenv("SECRET_KEY", "TEMP KEY"))
 app = flask.Flask(__name__)
-app.secret_key = "ARGLBARGL"
+app.secret_key = os.getenv("SECRET_KEY", "ARGLBARGL")
 
 if sys.stderr.isatty():