fix(config): restore dev config/.env and add DB connection safety net
This commit is contained in:
+5
-9
@@ -1,12 +1,8 @@
|
|||||||
# Environment & Secrets
|
# Environment
|
||||||
.env
|
/.env
|
||||||
.env.*
|
/.env.local
|
||||||
.env*.local
|
*.local
|
||||||
*.env
|
!config/.env
|
||||||
config/.env
|
|
||||||
config/.env.*
|
|
||||||
!.env.example
|
|
||||||
!config/.env.example
|
|
||||||
|
|
||||||
# Systeem & Editor
|
# Systeem & Editor
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
+33
@@ -0,0 +1,33 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# FOCIZ CONFIGURATIE — DEVELOPMENT OMGEVING (dev.fociz.nl)
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
# MariaDB Verbinding
|
||||||
|
DB_HOST="192.168.2.33"
|
||||||
|
DB_PORT="3306"
|
||||||
|
DB_NAME="focizdev"
|
||||||
|
DB_USER="focizdev_user"
|
||||||
|
DB_PASS="F0c1z_Dev_Secure_2026!"
|
||||||
|
|
||||||
|
# Omgeving & URL
|
||||||
|
APP_ENV="development"
|
||||||
|
APP_URL="https://dev.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 Dev"
|
||||||
|
SMTP_REPLY_TO="info@fociz.nl"
|
||||||
|
|
||||||
|
# Webhooks (optioneel)
|
||||||
|
JIRA_WEBHOOK_SECRET="fociz_webhook_dev_2026"
|
||||||
@@ -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
@@ -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_PORT', fociz_env('DB_PORT', '3306'));
|
||||||
define('DB_NAME', fociz_env('DB_NAME', $isDevEnv ? 'focizdev' : 'fociz'));
|
define('DB_NAME', fociz_env('DB_NAME', $isDevEnv ? 'focizdev' : 'fociz'));
|
||||||
define('DB_USER', fociz_env('DB_USER', $isDevEnv ? 'focizdev_user' : 'focizlive_user'));
|
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');
|
define('DB_CHARSET', 'utf8mb4');
|
||||||
|
|
||||||
// Bepaal de dynamische of geconfigureerde applicatie URL
|
// 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_HOST', fociz_env('SMTP_HOST', 'mail.fociz.nl'));
|
||||||
define('SMTP_PORT', (int)fociz_env('SMTP_PORT', 587));
|
define('SMTP_PORT', (int)fociz_env('SMTP_PORT', 587));
|
||||||
define('SMTP_USER', fociz_env('SMTP_USER', 'info@fociz.nl'));
|
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_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_EMAIL', fociz_env('SMTP_FROM_EMAIL', 'info@fociz.nl'));
|
||||||
define('SMTP_FROM_NAME', fociz_env('SMTP_FROM_NAME', 'Fociz'));
|
define('SMTP_FROM_NAME', fociz_env('SMTP_FROM_NAME', 'Fociz'));
|
||||||
|
|||||||
Reference in New Issue
Block a user