<?php
// includes/config.php
return [
  'db' => [
    'host' => getenv('DB_HOST') ?: 'localhost',
    'name' => getenv('DB_NAME') ?: 'itahukamedia_studio',
    'user' => getenv('DB_USER') ?: 'itahukamedia_studio',
    'pass' => getenv('DB_PASS') ?: 'Kigali@873!',
    'charset' => 'utf8mb4',
  ],
  'app' => [
    'base_url' => getenv('APP_BASE_URL') ?: '',
    'session_name' => getenv('APP_SESSION_NAME') ?: 'itahuka_portal',
  ],
  'livekit' => [
    'url_ws' => getenv('LIVEKIT_URL_WS') ?: 'wss://livekit.itahukamedia.com',
    'api_key' => getenv('LIVEKIT_API_KEY') ?: 'devkey',
    'api_secret' => getenv('LIVEKIT_API_SECRET') ?: 'devsecret',
  ],
  'egress_api' => [
    'base_url' => getenv('EGRESS_API_BASE_URL') ?: 'https://egress.itahukamedia.com',
    'token' => getenv('EGRESS_API_TOKEN') ?: '',
  ],
  'mediamtx' => [
    'rtmp_program_prefix' => getenv('MEDIAMTX_RTMP_PREFIX') ?: 'rtmp://mediamtx:1935/program',
  ],
];
