Update config/config.php
This commit is contained in:
+4
-4
@@ -68,16 +68,16 @@ if (!function_exists('fociz_env')) {
|
|||||||
// MariaDB Verbindingsgegevens (uit .env of .env.example)
|
// MariaDB Verbindingsgegevens (uit .env of .env.example)
|
||||||
define('DB_HOST', fociz_env('DB_HOST', '192.168.2.33'));
|
define('DB_HOST', fociz_env('DB_HOST', '192.168.2.33'));
|
||||||
define('DB_PORT', fociz_env('DB_PORT', '3306'));
|
define('DB_PORT', fociz_env('DB_PORT', '3306'));
|
||||||
define('DB_NAME', fociz_env('DB_NAME', 'focizdev'));
|
define('DB_NAME', fociz_env('DB_NAME', 'fociz'));
|
||||||
define('DB_USER', fociz_env('DB_USER', 'focizdev_user'));
|
define('DB_USER', fociz_env('DB_USER', 'focizlive_user'));
|
||||||
define('DB_PASS', fociz_env('DB_PASS', 'F0c1z_Dev_Secure_2026!'));
|
define('DB_PASS', fociz_env('DB_PASS', 'F0c1z_Live_Secure_2026!'));
|
||||||
define('DB_CHARSET', 'utf8mb4');
|
define('DB_CHARSET', 'utf8mb4');
|
||||||
|
|
||||||
// Bepaal de dynamische of geconfigureerde applicatie URL
|
// Bepaal de dynamische of geconfigureerde applicatie URL
|
||||||
if (!function_exists('fociz_detect_app_url')) {
|
if (!function_exists('fociz_detect_app_url')) {
|
||||||
function fociz_detect_app_url(): string {
|
function fociz_detect_app_url(): string {
|
||||||
$envUrl = fociz_env('APP_URL');
|
$envUrl = fociz_env('APP_URL');
|
||||||
if (!empty($envUrl) && !str_contains($envUrl, 'uw-domein.nl')) {
|
if (!empty($envUrl) && !str_contains($envUrl, 'www.fociz.nl')) {
|
||||||
return rtrim($envUrl, '/');
|
return rtrim($envUrl, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user