<?php
declare(strict_types=1);
$base = [
    'username' => 'siapaadmin',
    'password_hash' => '$2y$12$qLqWXkbsm4dd6uO3SLdcCefe/brZTY9sDHO.m86iOvyVpsTLL5hsa',
    'storage_dir' => dirname(__DIR__) . '/storage',
    'max_payload_bytes' => 48 * 1024 * 1024,
    'history_limit' => 25,
    'session_name' => 'SIAPA_SYNC_SESSION',
    'public_base_url' => '',
    'mail_enabled' => false,
    'mail_from' => '',
    'mail_from_name' => 'UEN Alberto Smith · SIAPA',
    'mail_reply_to' => '',
    'mail_max_recipients' => 5,
    // Réplica servidor local ↔ dominio. Se activa únicamente en el servidor local.
    'peer_sync_enabled' => false,
    'peer_id' => 'UEN-ALBERTO-SMITH',
    'peer_base_url' => '',
    'peer_token' => '29cdfa0f2d792000edc1985d4dc08226f2b7b80111cb04c0',
    'peer_interval_seconds' => 120,
    'peer_timeout_seconds' => 25,
    'peer_initial_policy' => 'conflict',
    'peer_allow_http' => false,
    'peer_allowed_ips' => [],
];
$overrideFile = __DIR__ . '/config.override.php';
$override = is_file($overrideFile) ? require $overrideFile : [];
return is_array($override) ? array_replace_recursive($base, $override) : $base;
