Files
nahodka-back/src/main/resources/application.yaml
2026-07-29 00:56:32 +03:00

56 lines
1.1 KiB
YAML

spring:
servlet:
multipart:
max-file-size: 5MB
max-request-size: 10MB
datasource:
url: jdbc:postgresql://localhost:5432/nahodka
username: user
password: pass
driver-class-name: org.postgresql.Driver
jpa:
hibernate:
ddl-auto: update # на старте удобно
show-sql: true
properties:
hibernate:
format_sql: true
data:
redis:
host: localhost
port: 6379
cache:
type: redis
liquibase:
change-log: classpath:db/changelog/db.changelog-master.yaml
minio:
endpoint: http://localhost:9010
bucket: refound-images
access-key: 59SWvKyRv7VZh4XT0p0H
secret-key: uRIPejW6DwSTwdICwxXRA71VuZAAVE9EmHBq7B7K
region: us-east-1 # MinIO не проверяет регион, но SDK требует значение
ai:
url: http://localhost:8000
timeout: 5
retry:
max-attempts: 3
delay: 500
multiplier: 2
file:
upload-dir: uploads/
cache:
ttl: 300
jwt:
secret: mySuperSecretKeyForJwtTokenGenerationThatIsLongEnough2024!ReFound
expiration: 86400000 # 24 hours in milliseconds