Files
nahodka-back/src/main/resources/application.yaml
2026-08-20 01:35:23 +03:00

57 lines
1.2 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: ${MINIO_ENDPOINT:http://localhost:9010}
bucket: ${MINIO_BUCKET:refound-images}
access-key: ${MINIO_ACCESS_KEY}
secret-key: ${MINIO_SECRET_KEY}
region: ${MINIO_REGION:us-east-1}
ai:
url: ${AI_SERVICE_URL:http://localhost:8000}
timeout: 5
retry:
max-attempts: 3
delay: 500
multiplier: 2
cache:
ttl: 300
jwt:
secret: ${JWT_SECRET:mySuperSecretKeyForJwtTokenGenerationThatIsLongEnough2024!ReFound}
access-expiration: ${JWT_ACCESS_EXPIRATION:900000} # 15 минут
refresh-expiration: ${JWT_REFRESH_EXPIRATION:604800000} # 7 дней
app:
cors:
allowed-origins: http://localhost:5173,http://localhost:3000,http://192.168.1.75:3000