<?php

/**
 * Notifier Configuration
 */

return [
    // Telegram - Production
    'telegram' => [
        'bot_token' => '8298514590:AAE-cjH9qeeYwovsE4JGrtNCgGt_Bf9cbBE',
        'chat_id'   => '-1003647994758',
        'timeout'   => 10,
    ],

    // Telegram - Test environment (for "Test Send" feature)
    'telegram_test' => [
        'bot_token' => '8298514590:AAE-cjH9qeeYwovsE4JGrtNCgGt_Bf9cbBE',
        'chat_id'   => '-1003425100040',
        'timeout'   => 10,
    ],

    // UI + API Authentication
    'auth' => [
        'password'  => 'notifier2025',
        'api_token' => 'nf_api_k8x2mP9qL4wR7vN3jH6yT1bZ0cA5dF8g',
    ],

    // Display timezone (all UI times shown in this timezone)
    'display_timezone' => 'America/Mexico_City',
    // Public base URL (used for confirmation links)
    'app_url' => 'https://www.tonki.dev/notifier',

    // File uploads
    'upload_max_size' => 5 * 1024 * 1024,  // 5MB
    'upload_path'     => __DIR__ . '/uploads',

    // Database
    'database' => [
        'path' => __DIR__ . '/database.sqlite',
    ],

    // Scheduler
    'scheduler' => [
        'lock_file'     => '/tmp/notifier.lock',
        'lock_timeout'  => 300,
        'batch_size'    => 50,
        'rate_limit_ms' => 100,
    ],

    // Cron health checks
    'cron_health' => [
        'max_age_minutes' => 10,
        'email_to' => 'contact@maurosicard.com',
        'from' => 'notifier@localhost',
        'subject_prefix' => '[Notifier]',
        'method' => 'mailersend',
    ],

    // MailerSend (for cron health email alerts)
    'mailer_send' => [
        'api_key' => 'mlsn.c10ab01300cea0aa8642e19478a74cd07916930bbae0b30b68d77ea52c1e6959',
        'from_email' => 'notifier@test-51ndgwvq29nlzqx8.mlsender.net',
        'from_name' => 'Notifier',
    ],

    // Alerts (stub for future email integration)
    'alerts' => [
        'enabled' => false,
        'method'  => 'email',
        'config'  => [],
    ],
];
