64 lines
1.8 KiB
YAML
64 lines
1.8 KiB
YAML
ffmpeg:
|
|
binary-path: ${FFMPEG_PATH:C:\ffmpeg\ffmpeg-9.0.2-essentials_build\bin\ffmpeg.exe}
|
|
|
|
spring:
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 10MB
|
|
max-request-size: 20MB
|
|
|
|
datasource:
|
|
url: ${DB_URL:jdbc:postgresql://localhost:5432/nahodka}
|
|
username: ${DB_USER:user}
|
|
password: ${DB_PASSWORD:pass}
|
|
driver-class-name: org.postgresql.Driver
|
|
|
|
jpa:
|
|
hibernate:
|
|
# Схемой управляет Liquibase. "update" молча правил таблицы мимо changelog,
|
|
# из-за чего базы расходились. Для разработки можно переопределить
|
|
# переменной окружения JPA_DDL_AUTO=update.
|
|
ddl-auto: ${JPA_DDL_AUTO:validate}
|
|
show-sql: ${JPA_SHOW_SQL:true}
|
|
properties:
|
|
hibernate:
|
|
format_sql: true
|
|
|
|
data:
|
|
redis:
|
|
host: ${REDIS_HOST:localhost}
|
|
port: 6379
|
|
password: ${REDIS_PASSWORD}
|
|
timeout: 500ms
|
|
connect-timeout: 500ms
|
|
web:
|
|
pageable:
|
|
max-page-size: 50
|
|
|
|
liquibase:
|
|
change-log: classpath:db/changelog/db.changelog-master.yaml
|
|
|
|
minio:
|
|
endpoint: ${MINIO_ENDPOINT:http://localhost:9010}
|
|
bucket: ${MINIO_BUCKET:refound-images}
|
|
ads-bucket: ${MINIO_ADS_BUCKET:ads-media}
|
|
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: 10
|
|
retry:
|
|
max-attempts: 3
|
|
delay: 500
|
|
multiplier: 2
|
|
|
|
jwt:
|
|
secret: ${JWT_SECRET}
|
|
access-expiration: ${JWT_ACCESS_EXPIRATION:900000} # 15 минут
|
|
refresh-expiration: ${JWT_REFRESH_EXPIRATION:604800000} # 7 дней
|
|
|
|
app:
|
|
cors:
|
|
allowed-origins: ${CORS_ALLOWED_ORIGINS:http://localhost:5173,http://localhost:3000,http://192.168.1.76:3000} |