| 1 | spring.application.name=trekr
|
|---|
| 2 |
|
|---|
| 3 | # ============================
|
|---|
| 4 | # JPA & Hibernate
|
|---|
| 5 | # ============================
|
|---|
| 6 | # NOTE: On some managed PostgreSQL providers the app user cannot read pg_catalog views
|
|---|
| 7 | # like pg_settings. Hibernate schema migration/metadata introspection can trigger that
|
|---|
| 8 | # access during startup (e.g., when ddl-auto=update).
|
|---|
| 9 | #
|
|---|
| 10 | # Default to no automatic DDL. Override locally if your DB user has sufficient rights:
|
|---|
| 11 | # export SPRING_JPA_HIBERNATE_DDL_AUTO=update
|
|---|
| 12 | spring.jpa.hibernate.ddl-auto=${SPRING_JPA_HIBERNATE_DDL_AUTO:none}
|
|---|
| 13 | spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
|---|
| 14 | spring.jpa.show-sql=false
|
|---|
| 15 | spring.jpa.properties.hibernate.format_sql=true
|
|---|
| 16 | spring.jpa.properties.hibernate.default_schema=trekr
|
|---|
| 17 | spring.jpa.properties.hibernate.hbm2ddl.create_namespaces=true
|
|---|
| 18 |
|
|---|
| 19 | # Avoid JDBC metadata access on boot (further reduces pg_catalog permission requirements)
|
|---|
| 20 | spring.jpa.properties.hibernate.boot.allow_jdbc_metadata_access=false
|
|---|
| 21 |
|
|---|
| 22 | # ============================
|
|---|
| 23 | # PostgreSQL connection (loaded from backend/.env or backend/env)
|
|---|
| 24 | # ============================
|
|---|
| 25 | spring.datasource.driver-class-name=org.postgresql.Driver
|
|---|
| 26 | spring.datasource.url=${SPRING_DATASOURCE_URL}
|
|---|
| 27 | spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
|
|---|
| 28 | spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}
|
|---|
| 29 |
|
|---|
| 30 | # ============================
|
|---|
| 31 | # JWT Configuration (supports JWT_SECRET or JWT_CONFIG_SECRET)
|
|---|
| 32 | # ============================
|
|---|
| 33 | jwt.secret=${JWT_SECRET:${JWT_CONFIG_SECRET:dev-fallback-secret-min-32-chars-required}}
|
|---|
| 34 |
|
|---|
| 35 | # ============================
|
|---|
| 36 | # Logging
|
|---|
| 37 | # ============================
|
|---|
| 38 | logging.level.org.springframework.security=DEBUG
|
|---|
| 39 |
|
|---|
| 40 | # ============================
|
|---|
| 41 | # HikariCP
|
|---|
| 42 | # ============================
|
|---|
| 43 | spring.datasource.hikari.pool-name=trekrHikariPool
|
|---|
| 44 | spring.datasource.hikari.maximum-pool-size=20
|
|---|
| 45 | spring.datasource.hikari.minimum-idle=5
|
|---|
| 46 | spring.datasource.hikari.connection-timeout=30000
|
|---|
| 47 | spring.datasource.hikari.idle-timeout=600000
|
|---|
| 48 | spring.datasource.hikari.max-lifetime=1800000
|
|---|
| 49 |
|
|---|
| 50 | # Max multipart parts
|
|---|
| 51 | server.tomcat.max-part-count=50
|
|---|