Use environment vars to store config.

This commit is contained in:
2019-02-12 18:09:06 +01:00
parent e3bb076af6
commit 9e6383c8ad
4 changed files with 21 additions and 18 deletions

View File

@@ -1,11 +1,7 @@
import json
import os
def roles():
with open("roles.json", "r") as f:
return json.load(f)
class Config:
SECRET_KEY = os.environ.get("ES_SECRET_KEY")
WRITE_PW = os.environ.get("ES_WRITE_PW")
READ_PW = os.environ.get("ES_READ_PW")