Added more env variables

This commit is contained in:
Marcin-Ramotowski
2025-03-16 15:44:49 +00:00
parent b2dc4856cb
commit ff07c3433e
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,7 @@ if __name__ == "__main__":
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('SQLALCHEMY_DATABASE_URI')
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
app.config['JWT_SECRET_KEY'] = 'changeme'
app.config['JWT_SECRET_KEY'] = os.getenv('JWT_SECRET_KEY', 'changeme')
app.register_blueprint(user_bp)
app.register_blueprint(task_bp)
db.init_app(app)