<?php
// Copy to config.php and adjust. config.php must never be committed.
return [
    'db' => [
        'host'     => '127.0.0.1',
        'port'     => 3306,
        'name'     => 'helpdesk',
        'user'     => 'cs',
        'pass'     => 'CoreFix1!',
    ],

    // 64 hex chars = 32 bytes. Generate with: php bin/genkey.php
    'app_key'      => '3dc020499ec0ff4904bb3093df12cbbf48dbd14d3d192ecdd5800453f6a1874f',

    // Absolute path, outside the document root, writable by www-data.
    // Must NOT be under /var/www/html, or files bypass the permission check.
    'upload_dir'   => '/var/lib/helpdesk/uploads',

    // Sub-path the app is served from. Must match `base` in web/vite.config.js.
    // '/cs' for https://server/cs/ , '/' for a dedicated domain.
    'cookie_path'  => '/',

    // Apache mod_xsendfile serves the file instead of PHP streaming it.
    // Set false in dev if the module is not installed.
    'use_xsendfile' => false,

    // Cookie is only sent over HTTPS when true. Keep true in production.
    'secure_cookies' => true,

    'session_lifetime_min' => 480,
    'timezone'             => 'Asia/Jerusalem',
];
