diff --git a/.gitignore b/.gitignore index 12a7986..a92a0b5 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ node_modules/ # Backend development /vendor/ +/config/system.php coverage/ *.cache .phpunit.coverage @@ -32,4 +33,4 @@ logs # Runtime /modules/ /storage/ -/var/ \ No newline at end of file +/var/ diff --git a/config/system.php b/config/system.php.example similarity index 87% rename from config/system.php rename to config/system.php.example index e2e56c2..0d420b2 100644 --- a/config/system.php +++ b/config/system.php.example @@ -2,14 +2,14 @@ return [ // Application Configuration - 'name' => 'Vallarx', + 'name' => 'Application Name', 'environment' => 'dev', 'debug' => true, // Database Configuration 'database' => [ // MongoDB connection URI (include credentials if needed) - 'uri' => 'mongodb://ktrix:ktrix@127.0.0.1:27017/?authSource=ktrix&tls=false', - 'database' => 'ktrix', + 'uri' => 'mongodb://username:password@database-host:27017/?authSource=database&tls=true', + 'database' => 'database', // optional driver options 'options' => [], 'driverOptions' => [], @@ -65,13 +65,14 @@ return [ 'channel' => 'app', // ── syslog driver options ────────────────────────────────────────────── - // Identity tag passed to openlog(); visible in /var/logs/syslog and journalctl -t ktrix - 'ident' => 'ktrix', + // Identity tag passed to openlog(); visible in syslog and journalctl. + 'ident' => 'application', // openlog() facility constant. Common values: LOG_USER, LOG_LOCAL0 … LOG_LOCAL7 'facility' => LOG_USER, ], // Security Configuration - 'security.salt' => 'a5418ed8c120b9d12c793ccea10571b74d0dcd4a4db7ca2f75e80fbdafb2bd9b', + // Generate a unique value for each deployment, for example: openssl rand -hex 32 + 'security.salt' => 'replace-with-a-random-secret', ];