<?php

return [
    'check_path' => env('UPDATE_CHECK_PATH', 'api/update/check'),
    'timeout' => (int) env('UPDATE_API_TIMEOUT', 10),
    'retry_attempts' => (int) env('UPDATE_RETRY_ATTEMPTS', 1),
    'retry_sleep' => (int) env('UPDATE_RETRY_SLEEP_MS', 500),
    'download_timeout' => (int) env('UPDATE_DOWNLOAD_TIMEOUT', 60),
    'download_retry_attempts' => (int) env('UPDATE_DOWNLOAD_RETRY_ATTEMPTS', 2),
    'download_retry_sleep' => (int) env('UPDATE_DOWNLOAD_RETRY_SLEEP_MS', 1000),
    'cache_ttl'               => (int) env('UPDATE_CACHE_TTL', 1800),
    'module_catalog_cache_ttl' => (int) env('MODULE_CATALOG_CACHE_TTL', 21600),
    'verify_ssl'               => (bool) env('UPDATE_VERIFY_SSL', true),
    'operation_time_limit'    => (int) env('UPDATE_OPERATION_TIME_LIMIT', 0),
];
