spring: application: name: gorodar-back datasource: url: jdbc:postgresql://${GORODAR_DB_HOST:localhost}:${GORODAR_DB_PORT:5432}/${GORODAR_DB_NAME:gorodar} username: ${GORODAR_DB_USER:gorodar} password: ${GORODAR_DB_PASSWORD:gorodar} jpa: hibernate: ddl-auto: validate open-in-view: false properties: hibernate.format_sql: false hibernate.jdbc.time_zone: UTC liquibase: change-log: classpath:db/changelog/db.changelog-master.yaml servlet: multipart: # 3D-модели ачивок с текстурами бывают больше 20 МБ; пользовательские фото # по-прежнему ограничены 20 МБ на стороне dinoV2 (413 прокидывается наружу) max-file-size: 50MB max-request-size: 55MB output: ansi: enabled: ALWAYS gorodar: # origin'ы браузерных клиентов; на сервере задаётся GORODAR_CORS_ALLOWED_ORIGINS # (список через запятую), по умолчанию — дев-серверы фронтендов (4200 — публичный, # 5173 — админка; её прокси vite пересылает Origin бэкенду) cors: allowed-origins: ${GORODAR_CORS_ALLOWED_ORIGINS:http://localhost:4200,http://localhost:5173}, https://gorodar.ru auth: client-id: gorodar issuer: ${GORODAR_AUTH_ISSUER:http://localhost:8080} access-token-ttl: 24h refresh-token-ttl: 30d code-ttl: 10m resend-interval: 60s keys-dir: ${GORODAR_AUTH_KEYS_DIR:./keys} mail-log-only: ${GORODAR_AUTH_MAIL_LOG_ONLY:false} dinov2: base-url: ${GORODAR_DINOV2_URL:http://localhost:8011} api-key: ${GORODAR_DINOV2_API_KEY:dev-key} # Вердикт вычисляем сами по confidence dino: >= match-threshold — match, # <= no-match-threshold — no_match, между ними — uncertain. Переопределяется # для конкретной достопримечательности (attractions.match_threshold и т.д.) match-threshold: ${GORODAR_DINOV2_MATCH_THRESHOLD:0.75} no-match-threshold: ${GORODAR_DINOV2_NO_MATCH_THRESHOLD:0.55} max-reference-photos: ${GORODAR_DINOV2_MAX_REFERENCE_PHOTOS:15} unisender: base-url: ${GORODAR_UNISENDER_URL:https://goapi.unisender.ru} api-key: ${GORODAR_UNISENDER_API_KEY:} from-email: ${GORODAR_UNISENDER_FROM_EMAIL:} from-name: ${GORODAR_UNISENDER_FROM_NAME:Городар} s3: endpoint: ${GORODAR_S3_ENDPOINT:http://localhost:9000} region: ${GORODAR_S3_REGION:ru-central-1} access-key: ${GORODAR_S3_ACCESS_KEY:gorodar} secret-key: ${GORODAR_S3_SECRET_KEY:gorodar-secret} bucket: ${GORODAR_S3_BUCKET:gorodar} path-style-access: true presign-ttl: 1h logging: level: # DEBUG включает логирование исходящих вызовов внешних сервисов (dinoV2, Unisender) ru.gorodar.integration: debug # DEBUG-логи обращений к S3/MinIO (AWS SDK) # software.amazon.awssdk.request: debug management: endpoints: web: exposure: include: health,info springdoc: api-docs: path: /api/v3/api-docs swagger-ui: path: /api/swagger-ui.html