Makes password hashing customizable

This commit is contained in:
2022-03-13 10:32:52 -04:00
parent f73e66d1fd
commit dfa4b24460
2 changed files with 15 additions and 3 deletions

View File

@@ -60,6 +60,7 @@ try:
else:
developmentMachine = False
configuration = {
"passwordOptions": {"cost": int(os.getenv("PASSWORD_ROUNDS", '10'))},
"api": os.getenv("WEBSITE_API"),
"mail": { "server": os.getenv("MAIL_SMTP_SERVER", "smtp.sendgrid.net"), "username": os.getenv("MAIL_USERNAME", "apikey"), "passsword": os.getenv("MAIL_PASSWORD", "none"), "port": int(os.getenv("MAIL_SMTP_PORT", "587")) },
"database": { "username": os.getenv("WEBSITE_USER", "admin"), "name": os.getenv("WEBSITE_DATABASE_TABLE", "website"), "password": os.getenv("WEBSITE_PASSWORD", "password"), "backupLocation": os.getenv("WEBSITE_BACKUP_LOCATION", "/backup"), "backupLength" : int(os.getenv("WEBSITE_BACKUP_LENGTH", "604800")) },