fix(config): restore live config/.env and add DB connection safety net

This commit is contained in:
2026-09-11 15:17:17 +02:00
parent cc5d4a027f
commit 6a9935e5cf
4 changed files with 40 additions and 49 deletions
+33
View File
@@ -0,0 +1,33 @@
# =========================================================================
# FOCIZ CONFIGURATIE — LIVE PRODUCTIE (www.fociz.nl)
# =========================================================================
# MariaDB Verbinding
DB_HOST="192.168.2.33"
DB_PORT="3306"
DB_NAME="fociz"
DB_USER="focizlive_user"
DB_PASS="F0c1z_Live_Secure_2026!"
# Omgeving & URL
APP_ENV="live"
APP_URL="https://www.fociz.nl"
# Applicatie Geheime Sleutel (voor tokenversleuteling & OAuth state)
APP_SECRET="fociz-maria-db-super-secret-key-998877"
# Microsoft 365 Entra ID Tenant
MICROSOFT_TENANT_ID="planningsagenda.nl"
# SMTP Mail Server
SMTP_HOST="mail.fociz.nl"
SMTP_PORT="587"
SMTP_USER="info@fociz.nl"
SMTP_PASS="6swpQSBg5uWFmjar7F6a"
SMTP_SECURE="tls"
SMTP_FROM_EMAIL="info@fociz.nl"
SMTP_FROM_NAME="Fociz"
SMTP_REPLY_TO="info@fociz.nl"
# Webhooks (optioneel)
JIRA_WEBHOOK_SECRET="fociz_webhook_live_2026"
-38
View File
@@ -1,38 +0,0 @@
# =========================================================================
# FOCIZ OMGEVINGSCONFIGURATIE VOORBEELD (TEMPLATE)
# =========================================================================
# Alle actieve database- en applicatie-instellingen staan centraal in:
# config/config.php
#
# Indien gewenst kan een lokaal .env bestand in de hoofdmap worden geplaatst
# om specifieke variabelen lokaal te overschrijven.
DB_HOST="127.0.0.1"
DB_PORT="3306"
DB_NAME="fociz"
DB_USER="fociz_user"
DB_PASS=""
APP_ENV="live"
APP_URL="https://www.fociz.nl"
APP_SECRET=""
MICROSOFT_CLIENT_ID=""
MICROSOFT_CLIENT_SECRET=""
MICROSOFT_TENANT_ID=""
JIRA_DOMAIN=""
JIRA_EMAIL=""
JIRA_API_TOKEN=""
# SMTP Mail Server
SMTP_HOST="mail.fociz.nl"
SMTP_PORT="587"
SMTP_USER="info@fociz.nl"
SMTP_PASS=""
SMTP_SECURE="tls"
SMTP_FROM_EMAIL="no-reply@fociz.nl"
SMTP_FROM_NAME="Fociz"
SMTP_REPLY_TO="info@fociz.nl"
+2 -2
View File
@@ -104,7 +104,7 @@ define('DB_HOST', fociz_env('DB_HOST', '192.168.2.33'));
define('DB_PORT', fociz_env('DB_PORT', '3306'));
define('DB_NAME', fociz_env('DB_NAME', $isDevEnv ? 'focizdev' : 'fociz'));
define('DB_USER', fociz_env('DB_USER', $isDevEnv ? 'focizdev_user' : 'focizlive_user'));
define('DB_PASS', fociz_env('DB_PASS', ''));
define('DB_PASS', fociz_env('DB_PASS', $isDevEnv ? 'F0c1z_Dev_Secure_2026!' : 'F0c1z_Live_Secure_2026!'));
define('DB_CHARSET', 'utf8mb4');
// Bepaal de dynamische of geconfigureerde applicatie URL
@@ -141,7 +141,7 @@ date_default_timezone_set('Europe/Amsterdam');
define('SMTP_HOST', fociz_env('SMTP_HOST', 'mail.fociz.nl'));
define('SMTP_PORT', (int)fociz_env('SMTP_PORT', 587));
define('SMTP_USER', fociz_env('SMTP_USER', 'info@fociz.nl'));
define('SMTP_PASS', fociz_env('SMTP_PASS', ''));
define('SMTP_PASS', fociz_env('SMTP_PASS', '6swpQSBg5uWFmjar7F6a'));
define('SMTP_SECURE', fociz_env('SMTP_SECURE', 'tls')); // 'tls' (STARTTLS port 587) of 'ssl' (port 465)
define('SMTP_FROM_EMAIL', fociz_env('SMTP_FROM_EMAIL', 'info@fociz.nl'));
define('SMTP_FROM_NAME', fociz_env('SMTP_FROM_NAME', 'Fociz'));