Files
mtusi2026lab4/src/main/resources/application.properties
T

16 lines
1.2 KiB
Properties
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Graceful shutdown: завершаем обработку текущих запросов перед остановкой.
server.shutdown=graceful
# Ожидание текущих запросов при shutdown: 20 с, меньше stop_grace_period 30s в compose.yaml,
# чтобы Docker не прислал SIGKILL посреди закрытия пулов PostgreSQL/Redis.
spring.lifecycle.timeout-per-shutdown-phase=20s
# Простой между пакетами тела запроса; медленную загрузку дополнительно буферизует nginx.
server.tomcat.connection-timeout=10s
# Лишние поля в JSON (например sender_id) по контракту дают 400, а не игнорируются.
spring.jackson.deserialization.fail-on-unknown-properties=true
# Секреты из /run/secrets: имя файла = имя свойства (spring.datasource.password, s3.access-key, ...).
spring.config.import=optional:configtree:/run/secrets/
# Миграции выполняет только контейнер migration (режим migrate), реплики их не запускают.
spring.flyway.enabled=false