feat: system configuration example
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
+2
-1
@@ -14,6 +14,7 @@ node_modules/
|
|||||||
|
|
||||||
# Backend development
|
# Backend development
|
||||||
/vendor/
|
/vendor/
|
||||||
|
/config/system.php
|
||||||
coverage/
|
coverage/
|
||||||
*.cache
|
*.cache
|
||||||
.phpunit.coverage
|
.phpunit.coverage
|
||||||
@@ -32,4 +33,4 @@ logs
|
|||||||
# Runtime
|
# Runtime
|
||||||
/modules/
|
/modules/
|
||||||
/storage/
|
/storage/
|
||||||
/var/
|
/var/
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
// Application Configuration
|
// Application Configuration
|
||||||
'name' => 'Vallarx',
|
'name' => 'Application Name',
|
||||||
'environment' => 'dev',
|
'environment' => 'dev',
|
||||||
'debug' => true,
|
'debug' => true,
|
||||||
// Database Configuration
|
// Database Configuration
|
||||||
'database' => [
|
'database' => [
|
||||||
// MongoDB connection URI (include credentials if needed)
|
// MongoDB connection URI (include credentials if needed)
|
||||||
'uri' => 'mongodb://ktrix:ktrix@127.0.0.1:27017/?authSource=ktrix&tls=false',
|
'uri' => 'mongodb://username:password@database-host:27017/?authSource=database&tls=true',
|
||||||
'database' => 'ktrix',
|
'database' => 'database',
|
||||||
// optional driver options
|
// optional driver options
|
||||||
'options' => [],
|
'options' => [],
|
||||||
'driverOptions' => [],
|
'driverOptions' => [],
|
||||||
@@ -65,13 +65,14 @@ return [
|
|||||||
'channel' => 'app',
|
'channel' => 'app',
|
||||||
|
|
||||||
// ── syslog driver options ──────────────────────────────────────────────
|
// ── syslog driver options ──────────────────────────────────────────────
|
||||||
// Identity tag passed to openlog(); visible in /var/logs/syslog and journalctl -t ktrix
|
// Identity tag passed to openlog(); visible in syslog and journalctl.
|
||||||
'ident' => 'ktrix',
|
'ident' => 'application',
|
||||||
|
|
||||||
// openlog() facility constant. Common values: LOG_USER, LOG_LOCAL0 … LOG_LOCAL7
|
// openlog() facility constant. Common values: LOG_USER, LOG_LOCAL0 … LOG_LOCAL7
|
||||||
'facility' => LOG_USER,
|
'facility' => LOG_USER,
|
||||||
],
|
],
|
||||||
|
|
||||||
// Security Configuration
|
// 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',
|
||||||
];
|
];
|
||||||
Reference in New Issue
Block a user