<?php

return [
    'default' => env('KYLIN_STORAGE_DRIVER', 'local'),
    'max_file_size' => env('KYLIN_STORAGE_MAX_SIZE', 10240), // KB
    'allowed_mimes' => ['image/jpeg', 'image/png', 'image/gif', 'image/webp', 'application/pdf', 'application/zip'],
    'table' => 'kylin_files',

    'image' => [
        'quality' => 85,
        'thumbnails' => [
            'small' => ['width' => 150, 'height' => 150],
            'medium' => ['width' => 400, 'height' => 400],
            'large' => ['width' => 800, 'height' => 800],
        ],
    ],

    'drivers' => [
        'local' => [
            'disk' => env('KYLIN_STORAGE_LOCAL_DISK', 'public'),
        ],

        'qiniu' => [
            'access_key' => env('QINIU_ACCESS_KEY', ''),
            'secret_key' => env('QINIU_SECRET_KEY', ''),
            'bucket' => env('QINIU_BUCKET', ''),
            'domain' => env('QINIU_DOMAIN', ''),
        ],

        'tencent' => [
            'secret_id' => env('COS_SECRET_ID', ''),
            'secret_key' => env('COS_SECRET_KEY', ''),
            'region' => env('COS_REGION', 'ap-guangzhou'),
            'bucket' => env('COS_BUCKET', ''),
            'schema' => env('COS_SCHEMA', 'https'),
            'token' => env('COS_TOKEN', null),
        ],

        'aliyun' => [
            'access_key' => env('OSS_ACCESS_KEY', ''),
            'access_secret' => env('OSS_ACCESS_SECRET', ''),
            'endpoint' => env('OSS_ENDPOINT', 'oss-cn-hangzhou.aliyuncs.com'),
            'bucket' => env('OSS_BUCKET', ''),
            'cname' => env('OSS_CNAME', false),
            'security_token' => env('OSS_SECURITY_TOKEN', null),
            'request_proxy' => env('OSS_REQUEST_PROXY', null),
        ],

        'huawei' => [
            'access_key' => env('OBS_ACCESS_KEY', ''),
            'secret_key' => env('OBS_SECRET_KEY', ''),
            'endpoint' => env('OBS_ENDPOINT', 'obs.cn-north-4.myhuaweicloud.com'),
            'bucket' => env('OBS_BUCKET', ''),
            'domain' => env('OBS_DOMAIN', ''),
            'socket_timeout' => env('OBS_SOCKET_TIMEOUT', 30),
            'connect_timeout' => env('OBS_CONNECT_TIMEOUT', 10),
        ],

        's3' => [
            'access_key' => env('S3_ACCESS_KEY', ''),
            'secret_key' => env('S3_SECRET_KEY', ''),
            'region' => env('S3_REGION', 'us-east-1'),
            'endpoint' => env('S3_ENDPOINT', 'https://s3.amazonaws.com'),
            'bucket' => env('S3_BUCKET', ''),
            'domain' => env('S3_DOMAIN', ''),
            'path_style' => env('S3_PATH_STYLE', true),
            'verify_ssl' => env('S3_VERIFY_SSL', true),
        ],

        'kingsoft' => [
            'access_key' => env('KS3_ACCESS_KEY', ''),
            'secret_key' => env('KS3_SECRET_KEY', ''),
            'endpoint' => env('KS3_ENDPOINT', 'ks3-cn-beijing.ksyuncs.com'),
            'bucket' => env('KS3_BUCKET', ''),
            'domain' => env('KS3_DOMAIN', ''),
        ],

        'baidu' => [
            'access_key' => env('BOS_ACCESS_KEY', ''),
            'secret_key' => env('BOS_SECRET_KEY', ''),
            'region' => env('BOS_REGION', 'bj'),
            'endpoint' => env('BOS_ENDPOINT', ''),
            'bucket' => env('BOS_BUCKET', ''),
            'domain' => env('BOS_DOMAIN', ''),
        ],
    ],
];
