<?php
// ============================================================
// backend/config/config.php
// ============================================================

// --- JWT ---
define('JWT_SECRET', 'CHANGE_THIS_TO_A_LONG_RANDOM_STRING_IN_PRODUCTION');
define('JWT_EXPIRY', 60 * 60 * 24 * 7); // 7 days in seconds

// --- Paystack ---
define('PAYSTACK_SECRET_KEY', 'sk_test_1d09a32c5ac7dd5221d3ea099fbbb924a1b264dd');
define('PAYSTACK_PUBLIC_KEY', 'pk_test_c5f2b5534d47bea9d534b465c9eda973105201c1');

// --- App ---
define('APP_NAME', 'Health Agency');
define('APP_URL',  'http://localhost'); // change to live domain in production

// --- CORS: allowed origins ---
// For cPanel hosting, set this to your actual frontend domain
define('ALLOWED_ORIGINS', [
    'http://localhost',
    'http://127.0.0.1',
    'http://localhost:5500',    // VS Code Live Server
    'https://yourdomain.com',   // replace with real domain
]);
