This commit is contained in:
2026-02-04 23:31:53 +01:00
commit cd59ccd99b
2401 changed files with 56808 additions and 0 deletions

69
config/config.php.example Normal file
View File

@@ -0,0 +1,69 @@
<?php
use MintyPHP\Auth;
use MintyPHP\Cache;
use MintyPHP\DB;
use MintyPHP\Debugger;
use MintyPHP\Firewall;
use MintyPHP\I18n;
use MintyPHP\Router;
use MintyPHP\Session;
define('APP_NAME', getenv('APP_NAME') ?: 'IMVS');
define('APP_SLOGAN', getenv('APP_SLOGAN') ?: 'Immobilien Makler Verkaufs Software');
define('APP_TIMEZONE', getenv('APP_TIMEZONE') ?: 'Europe/Berlin');
define('APP_STORAGE_PATH', getenv('APP_STORAGE_PATH') ?: __DIR__ . '/../storage');
$tenantScopeEnv = getenv('TENANT_SCOPE_STRICT');
define('TENANT_SCOPE_STRICT', $tenantScopeEnv === false ? true : filter_var($tenantScopeEnv, FILTER_VALIDATE_BOOLEAN));
if (!defined('APP_LOCALES')) {
$locales = getenv('APP_LOCALES') ?: 'de,en';
define('APP_LOCALES', array_values(array_filter(array_map('trim', explode(',', $locales)))));
}
if (!defined('APP_PUBLIC_PATHS')) {
define('APP_PUBLIC_PATHS', [
'login',
'register',
'password/forgot',
'password/verify',
'password/reset',
'lang',
'imprint',
'privacy',
]);
}
date_default_timezone_set(APP_TIMEZONE);
ini_set('date.timezone', APP_TIMEZONE);
Router::$baseUrl = '/'; // default: '/'
Router::$pageRoot = 'pages/'; // default: 'pages/'
Router::$templateRoot = 'templates/'; // default: 'templates/'
Session::$sessionName = getenv('SESSION_NAME') ?: 'MintyPHP';
Firewall::$concurrency = (int) (getenv('FIREWALL_CONCURRENCY') ?: 10);
Firewall::$spinLockSeconds = (float) (getenv('FIREWALL_SPINLOCK_SECONDS') ?: 0.15);
Firewall::$intervalSeconds = (int) (getenv('FIREWALL_INTERVAL_SECONDS') ?: 300);
Firewall::$cachePrefix = getenv('FIREWALL_CACHE_PREFIX') ?: 'fw_concurrency_';
Firewall::$reverseProxy = getenv('FIREWALL_REVERSE_PROXY') === 'true';
Cache::$servers = getenv('CACHE_SERVERS') ?: '127.0.0.1';
DB::$host = getenv('DB_HOST') ?: 'db';
DB::$username = getenv('DB_USER') ?: 'mintyphp';
DB::$password = getenv('DB_PASS') ?: 'mintyphp';
DB::$database = getenv('DB_NAME') ?: 'mintyphp';
DB::$port = (int) (getenv('DB_PORT') ?: 3306);
Auth::$usersTable = 'users';
Auth::$usernameField = 'email';
Auth::$passwordField = 'password';
Auth::$createdField = 'created';
Auth::$totpSecretField = 'totp_secret';
$debugEnv = getenv('APP_DEBUG');
Debugger::$enabled = $debugEnv === false ? true : filter_var($debugEnv, FILTER_VALIDATE_BOOLEAN);
I18n::$domain = getenv('APP_I18N_DOMAIN') ?: 'default';
I18n::$locale = getenv('APP_LOCALE') ?: 'de';

16
config/router.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
use MintyPHP\Router;
// Set up redirects
Router::addRoute('login', 'auth/login');
Router::addRoute('register', 'auth/register');
Router::addRoute('logout', 'auth/logout');
Router::addRoute('profile', 'account/profile');
Router::addRoute('password/forgot', 'auth/forgot');
Router::addRoute('password/verify', 'auth/verify');
Router::addRoute('password/reset', 'auth/reset');
Router::addRoute('verify-email', 'auth/verify-email');
Router::addRoute('imprint', 'page/imprint');
Router::addRoute('privacy', 'page/privacy');

8
config/settings.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
return array (
'app_title' => 'IVMS',
'app_locale' => 'de',
'app_theme' => 'dark',
'app_theme_user' => '1',
'app_primary_color' => '#9b3dc7',
);