remove hardcoded secret key, rely on env variable
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-29 20:41:56 -05:00
parent bf539fca09
commit dfa8eed12d
3 changed files with 3 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ from apscheduler.triggers.cron import CronTrigger
basedir = os.path.abspath(os.path.dirname(__file__))
app = Flask(__name__)
app.config['SECRET_KEY'] = 'HwG55rpe83jcaglifXm8NuF4WEeXyJV4'
app.config['SECRET_KEY'] = os.environ['SECRET_KEY']
app.config['SQLALCHEMY_DATABASE_URI'] =\
'sqlite:///' + os.path.join(basedir, os.environ['SQLITE_DB'])
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False