Skip to content

Commit

Permalink
config update to get jwt secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Snickdx committed Mar 1, 2024
1 parent 3ea5afa commit 7a241ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions App/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ def load_config():
from .default_config import SQLALCHEMY_DATABASE_URI, SECRET_KEY, JWT_SECRET_KEY
config['SQLALCHEMY_DATABASE_URI'] = SQLALCHEMY_DATABASE_URI
config['SECRET_KEY'] = SECRET_KEY
config['JWT_SECRET_KEY'] = JWT_SECRET_KEY
else:
config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('SQLALCHEMY_DATABASE_URI')
config['SECRET_KEY'] = os.environ.get('SECRET_KEY')
config['JWT_SECRET_KEY'] = os.environ.get('JWT_SECRET_KEY')
config['DEBUG'] = config['ENV'].upper() != 'PRODUCTION'

config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
Expand Down

0 comments on commit 7a241ef

Please sign in to comment.