-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.config.php
More file actions
38 lines (38 loc) · 1.01 KB
/
example.config.php
File metadata and controls
38 lines (38 loc) · 1.01 KB
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
<?php
return [
'displayErrors' => ((ENVIRONMENT == 'production') ? false : true),
'emailErrors' => ((ENVIRONMENT == 'production') ? true : false),
'logErrors' => true, //requires database
'cacheFolder' => FS_CACHE, //must end with slash
'database' => [
'driver' => 'pdo', //pdo or mysql
'dsn' => 'mysql:host='.DB_HOSTNAME.';dbname='.DB_DATABASE.';port='.DB_PORT.';charset=UTF8',
'username' => DB_USERNAME,
'password' => DB_PASSWORD
],
'ipinfoToken' => '',
'email' => [
'recipients' => [
'to' => [
[
'address' => 'email@domain.com',
'name' => 'To Name'
]
]
],
'from' => [
'address' => 'from@domain.com',
'name' => 'From Name'
],
'replyTo' => [
'address' => 'noreply@domain.com',
'name' => 'No Reply'
],
'PHPMailer' => [
'isSMTP' => true,
//'SMTPDebug' => ((ENVIRONMENT == 'production') ? 0 : 2), // More info: https://github.com/PHPMailer/PHPMailer/wiki/SMTP-Debugging
'Port' => ((ENVIRONMENT == 'production') ? 25 : 1025)
]
],
'handleNotices' => true
];