Add some scaffolding.

This commit is contained in:
2026-05-29 12:57:56 -06:00
parent 804fae4a90
commit 6ca1117565
8 changed files with 264 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
spring:
datasource:
url: ${DATASOURCE_URL:jdbc:postgresql://localhost:5432/notesvault}
driver-class-name: org.postgresql.Driver
username: ${DATASOURCE_USERNAME:notesvault}
password: ${DATASOURCE_PASSWORD:notesvault}
jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect
hibernate:
ddl-auto: validate
flyway:
locations: classpath:db/migration
h2:
console:
enabled: false

View File

@@ -0,0 +1,31 @@
spring:
datasource:
url: jdbc:h2:mem:notesvault;DB_CLOSE_DELAY=-1;MODE=PostgreSQL;NON_KEYWORDS=VALUE
driver-class-name: org.h2.Driver
username: sa
password: ""
jpa:
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
ddl-auto: validate
open-in-view: false
flyway:
locations: classpath:db/migration
h2:
console:
enabled: false
app:
jwt:
secret: ${JWT_SECRET:dev-secret-change-me-do-not-use-in-production}
expiration-seconds: 86400
---
spring:
config:
activate:
on-profile: dev
h2:
console:
enabled: true
path: /h2-console