server: address: ${APP_HOST:0.0.0.0} port: ${APP_PORT:8080} shutdown: graceful tomcat: connection-timeout: 3s max-http-form-post-size: 12MB max-swallow-size: 12MB error: include-message: never include-stacktrace: never include-binding-errors: never whitelabel: enabled: false spring: application: name: ${OTEL_SERVICE_NAME:messenger-api} lifecycle: timeout-per-shutdown-phase: 4s threads: virtual: enabled: false mvc: problemdetails: enabled: false throw-exception-if-no-handler-found: true web: resources: add-mappings: false jackson: use-jackson2-defaults: false property-naming-strategy: SNAKE_CASE time-zone: UTC default-property-inclusion: always deserialization: fail-on-unknown-properties: true datatype: datetime: write-dates-as-timestamps: false write-utc-as-offset: false datasource: url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5432/messenger} username: ${SPRING_DATASOURCE_USERNAME:messenger} password: ${SPRING_DATASOURCE_PASSWORD:messenger} hikari: maximum-pool-size: 10 minimum-idle: 1 connection-timeout: 3000 validation-timeout: 1000 jpa: open-in-view: false hibernate: ddl-auto: validate properties: hibernate.jdbc.time_zone: UTC liquibase: change-log: classpath:db/changelog/db.changelog-master.yaml data: redis: host: ${SPRING_DATA_REDIS_HOST:localhost} port: ${SPRING_DATA_REDIS_PORT:6379} timeout: 1s connect-timeout: 1s repositories: enabled: false kafka: bootstrap-servers: ${SPRING_KAFKA_BOOTSTRAP_SERVERS:localhost:9092} producer: acks: all key-serializer: org.apache.kafka.common.serialization.StringSerializer value-serializer: org.apache.kafka.common.serialization.StringSerializer properties: enable.idempotence: true consumer: group-id: attachment-worker auto-offset-reset: earliest enable-auto-commit: false key-deserializer: org.apache.kafka.common.serialization.StringDeserializer value-deserializer: org.apache.kafka.common.serialization.StringDeserializer properties: max-poll-records: ${WORKER_CONCURRENCY:2} listener: ack-mode: manual missing-topics-fatal: false management: endpoints: access: default: READ_ONLY web: exposure: include: - health - info - prometheus endpoint: health: probes: enabled: true show-details: always show-components: always cache: time-to-live: 0s group: readiness: include: - readinessState - db - s3 health: redis: enabled: false kafka: enabled: false prometheus: metrics: export: enabled: true tracing: sampling: probability: 1.0 propagation: type: w3c opentelemetry: resource-attributes: service.name: ${OTEL_SERVICE_NAME:messenger-api} service.version: "1.0.0" service.instance.id: ${HOSTNAME:local} deployment.environment.name: ${APP_ENV:lab} tracing: sampler: always-on export: otlp: endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://127.0.0.1:4318}/v1/traces timeout: 5s connect-timeout: 2s logging: export: max-queue-size: 2048 max-batch-size: 256 schedule-delay: 2s timeout: 5s otlp: endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://127.0.0.1:4318}/v1/logs timeout: 5s connect-timeout: 2s otlp: metrics: export: url: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://127.0.0.1:4318}/v1/metrics step: 10s timeout: 5s metrics: distribution: percentiles-histogram: http.server.requests: true messenger.job.duration: true messenger.job.time_to_ready: true slo: http.server.requests: 10ms,25ms,50ms,100ms,250ms,500ms,1s,2s,5s,10s,30s messenger.job.duration: 50ms,100ms,250ms,500ms,1s,2s,5s,10s,30s,60s messenger.job.time_to_ready: 100ms,250ms,500ms,1s,2s,5s,10s,30s,60s,120s info: app: name: messenger lab: 7 app: session-ttl: ${SESSION_TTL_SECONDS:3600}s idempotency-ttl: ${IDEMPOTENCY_TTL_SECONDS:86400}s instance-id: ${HOSTNAME:local} upload: max-bytes: ${MAX_UPLOAD_BYTES:10485760} max-pixels: ${MAX_IMAGE_PIXELS:40000000} s3: endpoint: ${S3_ENDPOINT:http://127.0.0.1:8333} region: ${S3_REGION:us-east-1} bucket: ${S3_BUCKET:messenger-attachments} access-key: ${S3_ACCESS_KEY:messenger} secret-key: ${S3_SECRET_KEY:messenger} bootstrap-access-key: ${S3_BOOTSTRAP_ACCESS_KEY:messenger-bootstrap} bootstrap-secret-key: ${S3_BOOTSTRAP_SECRET_KEY:messenger-bootstrap} orphan-grace: ${S3_ORPHAN_GRACE:2m} sweep-interval-ms: ${S3_SWEEP_INTERVAL_MS:60000} sweep-initial-delay-ms: ${S3_SWEEP_INITIAL_DELAY_MS:60000} broker: enabled: true outbox: enabled: true poll-ms: ${OUTBOX_POLL_MS:500} worker: consume: false concurrency: ${WORKER_CONCURRENCY:2} job: max-attempts: ${JOB_MAX_ATTEMPTS:5} timeout: ${JOB_TIMEOUT_SECONDS:60}s backoff-base-ms: ${JOB_BACKOFF_BASE_MS:1000} backoff-cap-ms: ${JOB_BACKOFF_CAP_MS:30000} reaper-ms: ${JOB_REAPER_MS:5000} demo: token: ${DEMO_TOKEN:lab-demo} image: jpeg-quality: ${JPEG_QUALITY:0.85} webp-quality: ${WEBP_QUALITY:0.8} staging: retention: ${STAGING_RETENTION_SECONDS:86400}s # 19 MiB — нижняя граница задания. В тестах лимит входа большой, на стенде его сужает compose. argon2: memory-kib: ${ARGON2_MEMORY_KIB:19456} iterations: ${ARGON2_ITERATIONS:2} parallelism: ${ARGON2_PARALLELISM:1} login-limit: per-user: ${LOGIN_LIMIT_USER:100000} global: ${LOGIN_LIMIT_GLOBAL:100000} window: ${LOGIN_LIMIT_WINDOW:60s} logging: level: net.ttddyy.dsproxy: warn