<?php

declare(strict_types=1);

return [
    'queue' => env('IMPORTING_QUEUE', 'imports'),

    'disk' => env('IMPORTING_DISK', 'local'),

    'max_upload_bytes' => (int) env('IMPORTING_MAX_UPLOAD_BYTES', 20 * 1024 * 1024),

    'parser' => [
        'max_listings' => (int) env('IMPORTING_MAX_LISTINGS', 5000),
        'max_media_per_listing' => (int) env('IMPORTING_MAX_MEDIA_PER_LISTING', 50),
        'max_text_length' => (int) env('IMPORTING_MAX_TEXT_LENGTH', 20000),
        'max_depth' => (int) env('IMPORTING_MAX_DEPTH', 32),
        'max_errors' => (int) env('IMPORTING_MAX_ERRORS', 500),
    ],

    'media' => [
        'timeout_seconds' => (int) env('IMPORTING_MEDIA_TIMEOUT', 15),
        'max_bytes' => (int) env('IMPORTING_MEDIA_MAX_BYTES', 8 * 1024 * 1024),
        'allowed_mimes' => ['image/jpeg', 'image/png', 'image/webp'],
    ],

    'source' => 'vrsync',
];
