[ 'name' => 'CertiMine', 'base_path' => dirname(__DIR__), 'public_url' => 'http://127.0.0.1:8080', 'timezone' => 'America/Mexico_City', 'qr_secret' => 'change-me-qr-hmac', 'qr_enforce' => false, 'debug' => false, ], 'db' => [ 'host' => '127.0.0.1', 'port' => 3306, 'name' => 'certimine', 'user' => 'root', 'pass' => 'R3m4st3r', 'charset' => 'utf8mb4', ], 'session' => [ 'name' => 'CERTIMINESESSID', 'cookie_lifetime' => 0, 'cookie_secure' => false, 'cookie_httponly' => true, 'cookie_samesite' => 'Lax', ], /** * API REST en la URL base del PDF (Wotbi): búsqueda por passport. Rutas = las del documento. */ 'penasquito_dc3' => [ 'base_url' => 'https://penasquito.wotbi.com', 'static_token' => '', 'search_path' => '/api/v1/dc3/competencies/passports/search/', 'result_path_template' => '/api/v1/dc3/competencies/passports/result/{ticket_id}/', 'status_path' => '/api/v1/dc3/competencies/passports/status/', 'authorization_header' => 'Authorization', 'authorization_scheme' => 'Token ', /** * Doc §1.6: polling al GET /result/ cada ~2 s (típico 5–15 s sin caché). * Aquí se hace polling acotado por request HTTP (≈6 s) para no agotar el max_execution_time * del web; el ticket_id se persiste en penasquito_tickets y el siguiente request retoma * el GET /result// sin volver a encolar. Para tareas CLI/cron sube max_attempts. */ 'poll_interval_seconds' => 2, 'poll_max_attempts' => 3, 'timeout_seconds' => 30, ], /** * Modo legacy (JSON login + JWT) si no usa token del API Peñasquito (documento). */ 'mobiliseme' => [ 'base_url' => 'https://api.mobiliseme.example', 'timeout_seconds' => 20, 'mock' => true, 'login_path' => '/auth/login', 'login_username_field' => 'username', 'login_password_field' => 'password', 'token_json_path' => 'access_token', 'authorization_header' => 'Authorization', 'authorization_scheme' => 'Bearer ', 'profile_path' => '/me', 'profile_external_id_path' => 'id', 'profile_name_path' => 'full_name', 'profile_type_path' => 'type', 'profile_employee_number_path' => 'employee_number', 'person_certificates_path' => '/persons/{id}/certificates', 'certificate_list_path' => 'items', 'webhook_secret' => '', ], ];