<?php
/**
 * Application Configuration
 * CARGOO Multi-Vendor E-Commerce Marketplace
 */

$current_host = $_SERVER['HTTP_HOST'] ?? '';
$is_production = (strpos($current_host, 'webapp69.cm.in.th') !== false);

return [
    'app_name' => 'CARGOO',
    'tagline' => 'Online Shopping',
    'app_url' => $is_production ? 'https://webapp69.cm.in.th/u69319090028/Shop' : 'http://localhost/CARGOO',
    'base_path' => $is_production ? '/u69319090028/Shop' : '/CARGOO',
    'timezone' => 'Asia/Bangkok',
    'default_locale' => 'th',
    'supported_locales' => ['th', 'en'],
    
    // Security & Session Settings
    'session_lifetime' => 7200, // 2 hours
    'remember_me_lifetime' => 2592000, // 30 days
    'password_reset_lifetime' => 3600, // 1 hour
    'max_login_attempts' => 5,
    'lockout_time' => 900, // 15 minutes (in seconds)
    'username_change_interval_days' => 30,
    
    // Upload settings
    'max_avatar_size' => 2 * 1024 * 1024, // 2MB
    'allowed_avatar_types' => ['image/jpeg', 'image/png', 'image/webp'],
    'allowed_avatar_extensions' => ['jpg', 'jpeg', 'png', 'webp'],
    
    // Environment
    'debug' => true,
];
