Skip to content

Commit

Permalink
Added backend basic db config
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonpoltorak committed Nov 29, 2023
1 parent 88e73da commit ffdaa26
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions corn-backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
server:
port: 8080

spring:
datasource:
url: ${SPRING_DATASOURCE_URL}
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}

jpa:
hibernate:
ddl-auto: create-drop
show-sql: true
properties:
hibernate:
jdbc:
lob:
non_contextual_creation: true
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: true

0 comments on commit ffdaa26

Please sign in to comment.