Files
honey-be/src/main/resources/application.yml

80 lines
1.8 KiB
YAML
Raw Normal View History

server:
port: 8080
spring:
application:
name: honey-be
datasource:
url: ${SPRING_DATASOURCE_URL:jdbc:mysql://localhost:3306/honey_db}
username: ${SPRING_DATASOURCE_USERNAME:root}
password: ${SPRING_DATASOURCE_PASSWORD:password}
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
connection-timeout: 30000
initialization-fail-timeout: -1
jpa:
hibernate:
ddl-auto: validate
show-sql: false
properties:
hibernate:
format_sql: false
dialect: org.hibernate.dialect.MySQLDialect
flyway:
enabled: true
locations: classpath:db/migration
baseline-on-migrate: true
connect-retries: 20
connect-retry-interval: 3000
validate-on-migrate: false
repair: true
telegram:
bot-token: ${TELEGRAM_BOT_TOKEN}
2026-01-09 21:35:52 +02:00
app:
session:
# Maximum number of active sessions per user (multi-device support)
max-active-per-user: ${APP_SESSION_MAX_ACTIVE_PER_USER:5}
# Batch cleanup configuration
cleanup:
# Number of expired sessions to delete per batch
batch-size: ${APP_SESSION_CLEANUP_BATCH_SIZE:5000}
# Maximum number of batches to process per cleanup run
max-batches-per-run: ${APP_SESSION_CLEANUP_MAX_BATCHES:20}
logging:
level:
root: INFO
org.springframework.boot.context.config: DEBUG
org.springframework.core.env: DEBUG
com.honey: DEBUG
management:
endpoints:
web:
exposure:
include: health,info
base-path: /actuator
endpoint:
health:
show-details: when-authorized
probes:
enabled: true
group:
readiness:
include: db,ping
liveness:
include: ping
health:
db:
enabled: true
diskspace:
enabled: false
ping:
enabled: true