Skip to content

Commit

Permalink
Update database and Redis configuration properties
Browse files Browse the repository at this point in the history
  • Loading branch information
0GiS0 committed May 6, 2024
1 parent d72dac1 commit 9560855
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ spring.jpa.hibernate.ddl-auto=update
#https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-data-jdbc-with-azure-postgresql?tabs=password&pivots=postgresql-passwordless-flexible-server
logging.level.org.springframework.jdbc.core=DEBUG
spring.sql.init.mode=always
#spring.datasource.url=${DB_DATASOURCE_URL}
#spring.datasource.username=${DB_USERNAME}
#spring.datasource.password=${DB_PASSWORD}
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.username=postgres
spring.datasource.password=mysecretpassword
spring.datasource.url=${DB_DATASOURCE_URL}
spring.datasource.username=${DB_USERNAME}
spring.datasource.password=${DB_PASSWORD}
# spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
# spring.datasource.username=postgres
# spring.datasource.password=mysecretpassword

### Azure Cache for Redis Configuration ###
spring.data.redis.repositories.enabled=false
spring.data.redis.host=localhost
spring.data.redis.port=6379
spring.data.redis.password=eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
# spring.data.redis.host=localhost
# spring.data.redis.port=6379
# spring.data.redis.password=eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
spring.data.redis.host=${REDIS_HOSTNAME}
spring.data.redis.port=${REDIS_PORT}
spring.data.redis.password=${REDIS_PASSWORD}
spring.data.redis.database=0
spring.cache.type=redis

0 comments on commit 9560855

Please sign in to comment.