<?php
// Hostiva v3 — environment configuration
// Copy to config.php and edit for your environment.

return [
    'app' => [
        'name'      => 'Hostiva',
        'url'       => 'http://localhost/hostiva',   // No trailing slash (XAMPP: http://localhost/hostiva)
        'base_path' => '/hostiva',                    // Cookie path; use '' if app is at domain root
        'env'       => 'production',                  // 'development' or 'production'
        'debug'     => false,
        'timezone'  => 'UTC',
        'key'       => 'CHANGE-ME-TO-A-RANDOM-64-CHAR-STRING',
    ],
    'db' => [
        'host'      => '127.0.0.1',
        'port'      => 3306,
        'name'      => 'hostiva',
        'user'      => 'root',
        'pass'      => '',
        'charset'   => 'utf8mb4',
    ],
    'security' => [
        'session_name'        => 'HOSTIVA_SID',
        'session_lifetime'    => 7200,         // seconds
        'csrf_lifetime'       => 7200,
        'rate_limit_per_min'  => 60,
        'login_max_attempts'  => 6,
        'login_lock_minutes'  => 15,
        'cookie_secure'       => false,        // set true on HTTPS
        'cookie_samesite'     => 'Lax',
    ],
    'mail' => [
        'from_email' => 'no-reply@hostiva.local',
        'from_name'  => 'Hostiva',
    ],
    'v4' => [
        'ota_mode' => 'simulation',  // simulation | live
        'airbnb_client_id' => '',
        'airbnb_client_secret' => '',
        'booking_com_api_key' => '',
        'hospitable_api_key' => '',
    ],
];
