<?php
/* ============================================================
 * Larspeenghar Pedigree — deployment config TEMPLATE
 *
 * Copy this file to  config.php  on the server and fill in your
 * real database credentials. config.php is NEVER overwritten on
 * upgrade, so your settings survive every code update.
 *
 * Create the database + a DB user in cPanel → "MySQL Databases",
 * then import schema.sql into it (cPanel → phpMyAdmin → Import).
 * ============================================================ */

return [
    // Where flat-file data lived in the old version (still used by the
    // one-time migrate_import.php). Safe to leave as-is.
    'data_dir' => __DIR__ . '/data',

    // ── MySQL / MariaDB connection (the scalable backend) ──
    'db' => [
        'host'    => 'localhost',          // Bluehost/cPanel: usually 'localhost'
        'port'    => 3306,
        'name'    => 'youracct_pedigree',  // the database you created in cPanel
        'user'    => 'youracct_peduser',   // the DB user you created
        'pass'    => 'CHANGE_ME_STRONG_PASSWORD',
        'charset' => 'utf8mb4',
    ],

    // One-time secret to authorise migrate_import.php (?key=...).
    // Set any long random string; delete migrate_import.php after migrating.
    'migrate_key' => 'change-this-to-a-long-random-secret',
];
