<?php
/**
 * Syamsu Files (SFiles) - Konfigurasi Utama
 */
return [
    // Aplikasi
    'APP_NAME'        => 'Syamsu Files',
    'BASE_PATH'       => '',        // Kosongkan jika di root domain, isi '/subfolder' jika di subfolder
    'APP_URL'         => 'https://drive.dev', // URL lengkap tanpa trailing slash

    // Auth (hanya untuk seed awal)
    'DEFAULT_USERNAME' => 'syamsubahar',
    'DEFAULT_PASSWORD' => 'syamsu66',

    // Upload
    'MAX_UPLOAD_BYTES'      => 2147483648, // 100 MB
    'ALLOWED_MIME_PREFIXES' => ['image/', 'application/pdf', 'text/', 'video/', 'audio/', 'application/zip', 'application/x-rar', 'application/x-7z', 'application/msword', 'application/vnd.openxmlformats', 'application/vnd.ms-'],
    'BLOCKED_EXTENSIONS'    => ['php', 'phtml', 'phar', 'php3', 'php4', 'php5', 'phps', 'cgi', 'pl', 'py', 'sh', 'bat', 'exe', 'dll', 'com', 'cmd', 'vbs', 'js', 'jsp', 'asp', 'aspx', 'htaccess'],

    // Storage quota
    'QUOTA_BYTES' => 5368709120, // 1 GB

    // Cloudflare R2
    'R2_ACCOUNT_ID'        => 'ce41dc8ad23876a31695825d5920ac0e',
    'R2_BUCKET'            => 'sokamity-drive',
    'R2_ACCESS_KEY_ID'     => '1d57a7a779c0f15660fe450c252f281b',
    'R2_SECRET_ACCESS_KEY' => '3214a32f27dbfed646f34e90efa80d4273a48fc4f5360cef669e0952e7c9f7ee',
    'R2_ENDPOINT_BASE'     => 'https://ce41dc8ad23876a31695825d5920ac0e.r2.cloudflarestorage.com',
    'R2_REGION'            => 'auto',
];
