source: backend/src/main/resources/application.properties@ 3ebe47c

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

Made authentication on frontend and backend

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