Update config-docker.py
Update config-docker.py to support more configurable values
@@ -97,8 +97,8 @@ SECRET_KEY = os.getenv('SECURITY_MONKEY_SECRET_KEY', '<INSERT_RANDOM_STRING_HERE
MAIL_DEFAULT_SENDER = os.getenv('SECURITY_MONKEY_EMAIL_DEFAULT_SENDER', 'securitymonkey@example.com')
SECURITY_REGISTERABLE = env_to_bool(os.getenv('SECURITY_MONKEY_SECURITY_REGISTERABLE', False))
-SECURITY_CONFIRMABLE = False
-SECURITY_RECOVERABLE = False
+SECURITY_CONFIRMABLE = env_to_bool(os.getenv('SECURITY_MONKEY_SECURITY_CONFIRMABLE', False))
+SECURITY_RECOVERABLE = env_to_bool(os.getenv('SECURITY_MONKEY_SECURITY_RECOVERABLE', False))
SECURITY_PASSWORD_HASH = 'bcrypt'
SECURITY_PASSWORD_SALT = os.getenv('SECURITY_MONKEY_SECURITY_PASSWORD_SALT', '<INSERT_RANDOM_STRING_HERE>')
SECURITY_TRACKABLE = True
@@ -113,7 +113,7 @@ SECURITY_POST_CHANGE_VIEW = BASE_URL
SECURITY_TEAM_EMAIL = os.getenv('SECURITY_MONKEY_SECURITY_TEAM_EMAIL', [])
# If you would prefer the email reports to exclude justified issues, set this to False
-EMAIL_AUDIT_REPORTS_INCLUDE_JUSTIFIED = True
+EMAIL_AUDIT_REPORTS_INCLUDE_JUSTIFIED = env_to_bool(os.getenv('SECURITY_MONKEY_EMAIL_AUDIT_REPORTS_INCLUDE_JUSTIFIED', True))
# These are only required if using SMTP instead of SES
EMAILS_USE_SMTP = env_to_bool(os.getenv('SECURITY_MONKEY_SMTP', True)) # Otherwise, Use SES
