mirror of
https://github.com/myronblair/epic-download
synced 2026-06-30 17:51:00 -05:00
auto-commit for f3b04df9-f563-4cb2-9a0a-69756e09f838
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* Epic Travel & Expeditions - Configuration File
|
||||
* Update these settings with your cPanel MySQL database credentials
|
||||
*/
|
||||
|
||||
// Database Configuration
|
||||
define('DB_HOST', 'localhost');
|
||||
define('DB_NAME', 'your_database_name');
|
||||
define('DB_USER', 'your_database_user');
|
||||
define('DB_PASS', 'your_database_password');
|
||||
define('DB_CHARSET', 'utf8mb4');
|
||||
|
||||
// Security Configuration
|
||||
define('JWT_SECRET_KEY', 'CHANGE_THIS_TO_A_RANDOM_SECRET_KEY_32_CHARACTERS_OR_MORE');
|
||||
define('JWT_EXPIRY', 86400); // 24 hours in seconds
|
||||
define('ADMIN_PASSWORD_HASH', '$2y$10$PLACEHOLDER'); // Generate using setup_password.php
|
||||
|
||||
// CORS Configuration
|
||||
define('ALLOWED_ORIGINS', 'https://yourdomain.com');
|
||||
|
||||
// Application Settings
|
||||
define('DEBUG_MODE', false);
|
||||
define('UPLOAD_DIR', __DIR__ . '/uploads/');
|
||||
define('MAX_UPLOAD_SIZE', 5242880); // 5MB in bytes
|
||||
|
||||
// API Settings
|
||||
define('API_PREFIX', '/api');
|
||||
|
||||
// Error Reporting
|
||||
if (DEBUG_MODE) {
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
} else {
|
||||
error_reporting(0);
|
||||
ini_set('display_errors', 0);
|
||||
}
|
||||
|
||||
// Timezone
|
||||
date_default_timezone_set('America/Chicago');
|
||||
|
||||
// Create uploads directory if it doesn't exist
|
||||
if (!file_exists(UPLOAD_DIR)) {
|
||||
mkdir(UPLOAD_DIR, 0755, true);
|
||||
}
|
||||
Reference in New Issue
Block a user