source: backend/src/main/resources/application.properties@ 5c20c64

Last change on this file since 5c20c64 was 5c20c64, checked in by Andrej <asumanovski@…>, 5 months ago

Added new content to the landing page and fixed app properties

  • Property mode set to 100644
File size: 2.0 KB
Line 
1spring.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
12spring.jpa.hibernate.ddl-auto=${SPRING_JPA_HIBERNATE_DDL_AUTO:none}
13spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
14spring.jpa.show-sql=false
15spring.jpa.properties.hibernate.format_sql=true
16spring.jpa.properties.hibernate.default_schema=trekr
17spring.jpa.properties.hibernate.hbm2ddl.create_namespaces=true
18
19# Avoid JDBC metadata access on boot (further reduces pg_catalog permission requirements)
20spring.jpa.properties.hibernate.boot.allow_jdbc_metadata_access=false
21
22# ============================
23# PostgreSQL connection (loaded from backend/.env or backend/env)
24# ============================
25spring.datasource.driver-class-name=org.postgresql.Driver
26spring.datasource.url=${SPRING_DATASOURCE_URL}
27spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
28spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}
29
30# ============================
31# JWT Configuration (supports JWT_SECRET or JWT_CONFIG_SECRET)
32# ============================
33jwt.secret=${JWT_SECRET:${JWT_CONFIG_SECRET:dev-fallback-secret-min-32-chars-required}}
34
35# ============================
36# Logging
37# ============================
38logging.level.org.springframework.security=DEBUG
39
40# ============================
41# HikariCP
42# ============================
43spring.datasource.hikari.pool-name=trekrHikariPool
44spring.datasource.hikari.maximum-pool-size=20
45spring.datasource.hikari.minimum-idle=5
46spring.datasource.hikari.connection-timeout=30000
47spring.datasource.hikari.idle-timeout=600000
48spring.datasource.hikari.max-lifetime=1800000
49
50# Max multipart parts
51server.tomcat.max-part-count=50
Note: See TracBrowser for help on using the repository browser.