Skip to content

Commit

Permalink
springboot: env vars in application.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
while1618 committed Dec 8, 2024
1 parent a4b7856 commit dcb8c55
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions backend/spring-boot/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# app
app.name=BootstrapBugZ
ui.app.url=http://localhost:5173
ui.app.url=${UI_APP_URL:http://localhost:5173}
# database
spring.sql.init.platform=postgres
spring.datasource.url=jdbc:postgresql://localhost:5432/bootstrapbugz
spring.datasource.username=postgres
spring.datasource.password=root
spring.datasource.url=jdbc:postgresql://${DB_URL:localhost:5432}/${DB_NAME:bootstrapbugz}
spring.datasource.username=${DB_USERNAME:postgres}
spring.datasource.password=${DB_PASSWORD:root}
spring.jpa.hibernate.ddl-auto=create
spring.jpa.properties.jakarta.persistence.validation.mode=none
spring.jpa.properties.hibernate.query.fail_on_pagination_over_collection_fetch=true
Expand All @@ -15,22 +15,22 @@ spring.data.web.pageable.default-page-size=10
#logging.level.org.hibernate.SQL=DEBUG
#logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
# redis
spring.data.redis.database=0
spring.data.redis.host=127.0.0.1
spring.data.redis.port=6379
spring.data.redis.password=root
spring.data.redis.database=${REDIS_DATABASE:0}
spring.data.redis.host=${REDIS_HOST:127.0.0.1}
spring.data.redis.port=${REDIS_PORT:6379}
spring.data.redis.password=${REDIS_PASSWORD:root}
spring.data.redis.timeout=60
# spring security
spring.security.user.password=qwerty123
spring.security.user.password=${SPRING_SECURITY_PASSWORD:qwerty123}
# email
spring.mail.host=smtp.mailgun.org
spring.mail.port=587
spring.mail.username=username
spring.mail.password=password
spring.mail.host=${MAIL_HOST:smtp.mailgun.org}
spring.mail.port=${MAIL_PORT:587}
spring.mail.username=${MAIL_USERNAME:username}
spring.mail.password=${MAIL_PASSWORD:password}
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
# jwt
jwt.secret=secret
jwt.secret=${JWT_SECRET:secret}
jwt.access-token.duration=900
jwt.refresh-token.duration=604800
jwt.verify-email-token.duration=900
Expand Down

0 comments on commit dcb8c55

Please sign in to comment.