spring: datasource: url: jdbc:postgresql://${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} username: ${POSTGRES_USER} password: ${POSTGRES_PASSWORD} driver-class-name: org.postgresql.Driver jpa: hibernate: ddl-auto: update show-sql: true properties: hibernate: dialect: org.hibernate.dialect.PostgreSQLDialect format_sql: true servlet: multipart: max-file-size: 10MB max-request-size: 100MB enabled: true resolve-lazily: false file: storage: base-path: ${FILE_STORAGE_PATH:/data/uploads} # chunk-size: ${FILE_CHUNK_SIZE:5242880} # 5MB # chunk-size: ${FILE_CHUNK_SIZE:1048576} # 1MB chunk-size: ${FILE_CHUNK_SIZE:1000000} # 1MB max-file-size: ${MAX_FILE_SIZE:10737418240} # 10GB max-retry-attempts: ${MAX_RETRY_ATTEMPTS:3} chunk-timeout-ms: ${CHUNK_TIMEOUT_MS:300000} # 5 минут temp-ttl-hours: ${TEMP_TTL_HOURS:72} # 3 дня session-expiry-hours: ${SESSION_EXPIRY_HOURS:24} security: cors: allowed-origins: "*" allowed-methods: GET,POST,PUT,DELETE,OPTIONS allowed-headers: "*" allow-credentials: true yandex: api-key: ${YANDEX_SEARCH_API_KEY} folder-id: ${YANDEX_SEARCH_FOLDER_ID} search-url: "https://searchapi.api.cloud.yandex.net/v2/image/search_by_image" server: port: ${SERVER_PORT:8080} logging: level: com.example.fileupload: DEBUG org.springframework.web: DEBUG org.hibernate.SQL: DEBUG file: name: logs/application.log pattern: console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"