Welcome to the User Framework SpringBoot Configuration Guide! This document outlines the key configuration values you'll need to set up and customize the framework for your specific needs. Configuration values which can generally be left as defaults are not included in this document. Please review the applicaiton.yml file for more information on all the available configuration values.
- Username (
spring.mail.username
): Set this to your mail server's username. - Password (
spring.mail.password
): Your mail server's password goes here. - Host (
spring.mail.host
): Set this to your mail server's hostname - Port (
spring.mail.port
): Set to587
by default. Modify if your mail server uses a different port.
- URL (
spring.datasource.url
): The JDBC URL for your database. - Username (
spring.datasource.username
): Database username. - Password (
spring.datasource.password
): Database password. - Driver Class Name (
spring.datasource.driverClassName
): The JDBC driver, defaults toorg.mariadb.jdbc.Driver
.
- DDL Auto (
spring.jpa.hibernate.ddl-auto
): Hibernate schema generation strategy, defaults toupdate
. - Dialect (
spring.jpa.properties.hibernate.dialect
): Set this to the appropriate dialect for your database, defaults toorg.hibernate.dialect.MariaDBDialect
.
- Account Deletion (
user.actuallyDeleteAccount
): Set totrue
to enable account deletion. Defaults tofalse
where accounts are disabled instead of deleted. - Registration Email Verification (
user.registration.sendVerificationEmail
): Enable (true
) or disable (false
) sending verification emails post-registration.
- Log File Path (
user.audit.logFilePath
): The path to the audit log file. - Flush on Write (
user.audit.flushOnWrite
): Set totrue
for immediate log flushing. Defaults tofalse
for performance.
- Failed Login Attempts (
spring.security.failedLoginAttempts
): Number of failed login attempts before account lockout. Set to0
to disable lockout. - Account Lockout Duration (
spring.security.accountLockoutDuration
): Duration (in minutes) for account lockout. - BCrypt Strength (
spring.security.bcryptStrength
): Adjust the bcrypt strength for password hashing. Default is12
.
- From Address (
spring.mail.fromAddress
): The email address used as the sender in outgoing emails.
- Roles and Privileges (
spring.roles-and-privileges
): Map out roles to their respective privileges. - Role Hierarchy (
spring.role-hierarchy
): Define the hierarchy and inheritance of roles.
- Session Timeout (
server.servlet.session.timeout
): The session timeout period, defaults to30m
(30 minutes).
- Log File Path (
logging.file.name
): Set the path to the application log file.
Remember, this guide covers the most critical settings to get you started. Depending on your specific use case, you may need to explore and adjust additional configurations. Always refer to the official SpringBoot and related libraries' documentation for more detailed information.