57 lines
1.6 KiB
PHP
57 lines
1.6 KiB
PHP
<?php
|
|
|
|
return [
|
|
'name' => 'CodePress Admin Console',
|
|
'version' => '1.0.0',
|
|
'debug' => true,
|
|
'timezone' => 'Europe/Amsterdam',
|
|
|
|
// Security
|
|
'security' => [
|
|
'jwt_secret' => $_ENV['JWT_SECRET'] ?? 'your-secret-key-change-in-production',
|
|
'jwt_expiration' => 3600, // 1 hour
|
|
'session_timeout' => 1800, // 30 minutes
|
|
'max_login_attempts' => 5,
|
|
'lockout_duration' => 900, // 15 minutes
|
|
],
|
|
|
|
// Database
|
|
'database' => [
|
|
'type' => 'sqlite',
|
|
'path' => __DIR__ . '/../database/admin.db',
|
|
'backup_path' => __DIR__ . '/../storage/backups/',
|
|
],
|
|
|
|
// CodePress Integration
|
|
'codepress' => [
|
|
'path' => __DIR__ . '/../../',
|
|
'content_dir' => __DIR__ . '/../../public/content/',
|
|
'templates_dir' => __DIR__ . '/../../engine/templates/',
|
|
'plugins_dir' => __DIR__ . '/../../plugins/',
|
|
],
|
|
|
|
// Email
|
|
'mail' => [
|
|
'host' => $_ENV['MAIL_HOST'] ?? 'localhost',
|
|
'port' => $_ENV['MAIL_PORT'] ?? 587,
|
|
'username' => $_ENV['MAIL_USERNAME'] ?? '',
|
|
'password' => $_ENV['MAIL_PASSWORD'] ?? '',
|
|
'from' => $_ENV['MAIL_FROM'] ?? 'admin@codepress.local',
|
|
'from_name' => 'CodePress Admin',
|
|
],
|
|
|
|
// Storage
|
|
'storage' => [
|
|
'uploads_path' => __DIR__ . '/../storage/uploads/',
|
|
'logs_path' => __DIR__ . '/../storage/logs/',
|
|
'cache_path' => __DIR__ . '/../storage/cache/',
|
|
],
|
|
|
|
// UI Settings
|
|
'ui' => [
|
|
'theme' => 'bootstrap',
|
|
'items_per_page' => 20,
|
|
'date_format' => 'd-m-Y H:i',
|
|
'timezone' => 'Europe/Amsterdam',
|
|
],
|
|
]; |