Skip to content

Commit

Permalink
update applcaiton properties for postservice
Browse files Browse the repository at this point in the history
AleksandraKrasteva committed Jun 11, 2024
1 parent ca40db8 commit 888e7db
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions PostManagement/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -17,12 +17,14 @@ spring.rabbitmq.port=${RABBITMQ_PORT}
spring.rabbitmq.username=${RABBITMQ_USER}
spring.rabbitmq.password=${RABBITMQ_PASS}
#DB setup
spring.datasource.url=jdbc:postgresql://${POST_DB_HOST}:${POST_DB_PORT}/posts
spring.datasource.username=${POST_DB_USER}
spring.datasource.password=${POST_DB_PASS}
#spring.datasource.url=jdbc:postgresql://${POST_DB_HOST}:${POST_DB_PORT}/posts
spring.datasource.url= jdbc:postgresql://post-database.postgres.database.azure.com:5432/postgres?user=${POST_DB_USER}&password=${POST_DB_PASS}&sslmode=require
#spring.datasource.username=${POST_DB_USER}
#spring.datasource.password=${POST_DB_PASS}
spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect

spring.jpa.open-in-view=false
#spring.datasource.hikari.maximumPoolSize=100

0 comments on commit 888e7db

Please sign in to comment.