-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.default.php
76 lines (55 loc) · 1.99 KB
/
config.default.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
69
70
71
72
73
74
75
76
<?php
use \altef\output\Debug;
list($scriptPath) = get_included_files();
// This is the default config. We can override any of these properties in config.[environment].php
$config = [
// There should be a matching config.[key].php file for each of these, whose contents can override any of the values here
// Those values will be used if the domain matches the [value] associated with that key
'environments' => [
'production' => 'domain.com',
],
'headers' => [
["Access-Control-Allow-Origin: *"],
['Content-type: application/json'],
['Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS'],
['Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Cookie, Authorization, X-Experience-API-Version'],
["Cache-Control: no-store, no-cache, must-revalidate, max-age=0"],
["Cache-Control: post-check=0, pre-check=0", false],
["Pragma: no-cache"]
],
// System info - used for authentication, etc.
'system' => [
'messages' => [
'unexpected_error' => 'An unexpected error has occurred.',
'unexpected_exception' => 'An unexpected exception has occurred.'
],
'database' => [
'host' => '',
'username' => '',
'password' => '',
'database' => '',
// These tables will be present in the system database
'tables' => [
'users' => 'sys_users',
'persistent_global_map' => 'sys_value_map'
],
],
// Permissions that are set when creating a user
'default_permissions' => [],
],
'client_url' => '',
'email' => [
'from' => '',
'subjects' => [
'welcome' => 'Hey new user!',
'forgot' => 'Password reset'
]
],
'verbosity' => [
'default' => Debug::Silent,
'debug' => Debug::Debug
],
'email_template_directory' => dirname($scriptPath) . DIRECTORY_SEPARATOR . 'email_templates' . DIRECTORY_SEPARATOR,
];
// You can specify extra stuff as well, including more databases - in case you want to keep your data separate from your api system.
// ...