using mysql as default config if no profile is active.
This commit is contained in:
parent
9dca1e8abb
commit
ae83b0845c
1 changed files with 13 additions and 4 deletions
|
|
@ -1,11 +1,17 @@
|
|||
# MySQL Profile Configuration
|
||||
# Activate with: -Dspring.profiles.active=mysql or SPRING_PROFILES_ACTIVE=mysql
|
||||
|
||||
# Application Name
|
||||
spring.application.name=lcc
|
||||
|
||||
# Active Profile (mysql or mssql)
|
||||
spring.profiles.active=mysql
|
||||
spring.profiles.active=prod,mysql
|
||||
|
||||
# Database Configuration
|
||||
# Database Configuration - MySQL
|
||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
spring.datasource.url=jdbc:mysql://${DB_HOST:localhost}:3306/${DB_DATABASE:lcc}
|
||||
spring.datasource.username=${DB_USER:root}
|
||||
spring.datasource.password=${DB_PASSWORD}
|
||||
|
||||
# File Upload Limits
|
||||
spring.servlet.multipart.max-file-size=30MB
|
||||
|
|
@ -19,13 +25,16 @@ spring.cloud.azure.active-directory.authorization-clients.graph.scopes=openid,pr
|
|||
management.endpoints.web.exposure.include=health,info,metrics
|
||||
management.endpoint.health.show-details=when-authorized
|
||||
|
||||
# Flyway Migration (configured per profile)
|
||||
# Flyway Migration - MySQL
|
||||
spring.flyway.enabled=true
|
||||
spring.flyway.locations=classpath:db/migration/mysql
|
||||
spring.flyway.baseline-on-migrate=true
|
||||
spring.sql.init.mode=never
|
||||
|
||||
# LCC Configuration
|
||||
lcc.allowed_cors=
|
||||
lcc.allowed_oauth_token_cors=*
|
||||
|
||||
|
||||
lcc.auth.identify.by=workday
|
||||
lcc.auth.claim.workday=employeeid
|
||||
lcc.auth.claim.email=preferred_username
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue