-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.sample.php
68 lines (62 loc) · 2.44 KB
/
config.sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
use Monolog\Logger;
use Oforge\Engine\Modules\Core\Helper\Statics;
return [
'mode' => 'development', // production|development
// Monolog settings
'logger' => [
[
'name' => 'system',
'level' => Logger::DEBUG,
],
[
'name' => 'plugins',
'level' => Logger::DEBUG,
],
],
//Doctrine Settings
'db' => [
// if true, metadata caching is forcefully disabled
'dev_mode' => true,
// path where the compiled metadata info will be cached. make sure the path exists and it is writable
'cache_dir' => ROOT_PATH . '/' . Statics::DB_CACHE_DIR,
// you should add any other path containing annotated entity classes
'metadata_dirs' => [ROOT_PATH . '/Engine', ROOT_PATH . '/Plugins'],
'connection' => [
'driver' => 'pdo_mysql',
'host' => 'localhost',
'port' => 3306,
'dbname' => '', // your database name here
'user' => '', // your database user name here
'password' => '', // your database user password here
'charset' => 'utf8mb4' // we expect to use utf8 charset everywhere (webserver, mysql, php, etc)
],
],
'jwt_salt' => 'my awesome salt', // Change this salt for security
// config for db value encrypt/decrypt
'encryption' => [
// 'method' => 'aes-128-gcm', // Default: aes-128-gcm
'key' => 'my awesome salt',
],
// host_url needed in specific cases (i.e. cronjobs generating domain specific links)
'host_url' => '', // your domain
// Configuration for detailed error reporting (in case of server error) via mail (over smtp)
'error_mail_report' => [
'active' => false, // enable/disable error reporting
'mailer_settings' => [
'smtp_host' => '', // set the SMTP server to send through
'smtp_port' => 587,
'smtp_user' => '', // SMTP username
'smtp_pw' => '', // SMTP password
'smtp_encryption' => '', // ssl/tls
'smtp_from' => '', // sender address
'receiver_address' => '', // recipient address
],
],
// plugin configs
'Plugins' => [
'ReportErrorForm' => [
// '<address>' => '<name="">',
],
],
];