Update -> refactor and optimize UI , code ,...

This commit is contained in:
2026-04-10 11:35:25 +03:30
parent 3327207f05
commit 0de951fd91
20 changed files with 1085 additions and 282 deletions

View File

@@ -1,15 +1,22 @@
<?php
$env = parse_ini_file(__DIR__ . '/../../.env');
$envFile = __DIR__ . '/../../.env';
$env = file_exists($envFile) ? parse_ini_file($envFile) : [];
return [
'db' => [
'host' => $env['DB_HOST'] ?? 'localhost',
'name' => $env['DB_NAME'] ?? 'paste',
'user' => $env['DB_USER'] ?? 'root',
'pass' => $env['DB_PASS'] ?? ''
'host' => $env['DB_HOST'] ?? 'localhost',
'name' => $env['DB_NAME'] ?? 'paste',
'user' => $env['DB_USER'] ?? 'root',
'pass' => $env['DB_PASS'] ?? '',
'charset' => 'utf8mb4',
],
'redis' => [
'host' => '127.0.0.1',
'port' => 6379
'host' => $env['REDIS_HOST'] ?? '127.0.0.1',
'port' => (int)($env['REDIS_PORT'] ?? 6379),
],
'app' => [
'master_key' => $env['MASTER_KEY'] ?? 'change_me_master_key',
'base_url' => $env['APP_URL'] ?? '',
'cipher' => 'AES-256-CBC',
],
'master_key' => $env['MASTER_KEY'] ?? 'change_me_master_key'
];