| 1 | spring.application.name=trekr
|
|---|
| 2 |
|
|---|
| 3 | # ============================
|
|---|
| 4 | # JPA & Hibernate
|
|---|
| 5 | # ============================
|
|---|
| 6 | spring.jpa.hibernate.ddl-auto=update
|
|---|
| 7 | spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
|---|
| 8 | spring.jpa.show-sql=false
|
|---|
| 9 | spring.jpa.properties.hibernate.format_sql=true
|
|---|
| 10 | spring.jpa.properties.hibernate.default_schema=trekr
|
|---|
| 11 | spring.jpa.properties.hibernate.hbm2ddl.create_namespaces=true
|
|---|
| 12 |
|
|---|
| 13 | # ============================
|
|---|
| 14 | # PostgreSQL connection (loaded from backend/.env or backend/env)
|
|---|
| 15 | # ============================
|
|---|
| 16 | spring.datasource.driver-class-name=org.postgresql.Driver
|
|---|
| 17 | spring.datasource.url=${SPRING_DATASOURCE_URL}
|
|---|
| 18 | spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
|
|---|
| 19 | spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}
|
|---|
| 20 |
|
|---|
| 21 | # ============================
|
|---|
| 22 | # JWT Configuration (supports JWT_SECRET or JWT_CONFIG_SECRET)
|
|---|
| 23 | # ============================
|
|---|
| 24 | jwt.secret=${JWT_SECRET:${JWT_CONFIG_SECRET:dev-fallback-secret-min-32-chars-required}}
|
|---|
| 25 |
|
|---|
| 26 | # ============================
|
|---|
| 27 | # Logging
|
|---|
| 28 | # ============================
|
|---|
| 29 | logging.level.org.springframework.security=DEBUG
|
|---|
| 30 |
|
|---|
| 31 | # ============================
|
|---|
| 32 | # HikariCP
|
|---|
| 33 | # ============================
|
|---|
| 34 | spring.datasource.hikari.pool-name=trekrHikariPool
|
|---|
| 35 | spring.datasource.hikari.maximum-pool-size=20
|
|---|
| 36 | spring.datasource.hikari.minimum-idle=5
|
|---|
| 37 | spring.datasource.hikari.connection-timeout=30000
|
|---|
| 38 | spring.datasource.hikari.idle-timeout=600000
|
|---|
| 39 | spring.datasource.hikari.max-lifetime=1800000
|
|---|
| 40 |
|
|---|
| 41 | # Max multipart parts
|
|---|
| 42 | server.tomcat.max-part-count=50
|
|---|