<?php

return [
    // laravel
    'disks' => [
        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
            'throw' => true,
            'serve' => false,
        ],

        'public' => [
            'driver' => 'local',
            'root' => public_path('storage'),
            'url' =>
                rtrim(env('APP_URL', 'http://localhost'), '/') . '/storage',
            'visibility' => 'public',
            'throw' => false,
            'report' => false,
            'serve' => false,
        ],
    ],

    'upload_types' => [
        'avatars' => [
            'visibility' => 'public',
            'label' => 'User avatars',
            'description' => 'Avatars uploaded by users on the site.',
            'defaults' => [
                'prefix' => 'avatars',
                'accept' => ['image'],
                'max_file_size' => '1048576',
            ],
        ],
        'brandingImages' => [
            'visibility' => 'public',
            'label' => 'Branding images',
            'description' =>
                'Logos, landing page images, previews etc. uploaded from admin area.',
            'defaults' => [
                'prefix' => 'branding-images',
                'accept' => ['image'],
                'max_file_size' => '3145728',
            ],
        ],
        'articleImages' => [
            'visibility' => 'public',
            'label' => 'Article images',
            'description' =>
                'Inline article and custom page images uploaded from editor.',
            'defaults' => [
                'prefix' => 'article-images',
                'accept' => ['image'],
                'max_file_size' => '3145728',
            ],
        ],
    ],

    // app
    'disable_thumbnail_creation' => env('DISABLE_THUMBNAIL_CREATION', false),
    'use_presigned_s3_urls' => env('USE_PRESIGNED_S3_URLS', true),
    'static_file_delivery' => env('STATIC_FILE_DELIVERY', null),
    'uploads_disable_tus' => env('UPLOADS_DISABLE_TUS'),
    'uploads_tus_method' => env('UPLOADS_TUS_METHOD'),

    // legacy
    'uploads_disk_driver' => env('UPLOADS_DISK_DRIVER', 'local'),
    'public_disk_driver' => env('PUBLIC_DISK_DRIVER', 'local'),
    'file_preview_endpoint' => env('FILE_PREVIEW_ENDPOINT'),
];
