-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.php
109 lines (99 loc) · 4.65 KB
/
settings.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
return [
'settings' => [
'determineRouteBeforeAppMiddleware' => true,
'displayErrorDetails' => false, // set to false in production
'addContentLengthHeader' => false, // Allow the web server to send the content-length header
'public_path' => isset($_ENV['docker']) ? '/' : str_replace('index.php', '', $_SERVER['PHP_SELF']), // Relative to domain (e.g. project is in sub directory '/project/public/')
'cache_path' => __DIR__ . '/../cache/',
'config_path' => __DIR__ . '/../config/',
// Renderer settings
'renderer' => [
'debug' => false,
'cache' => false, // FALSE or path to cache folder "__DIR__ . '/../cache/'"
'htmlcompress' => true,
'template_path' => __DIR__ . '/../template/',
],
// Google recaptcha
'recaptcha' => [
'site' => '',
'secret' => '',
],
// Google QR Code title
'2fa_qrc_title' => null,
// pages for the public
'active_pages' => [
'login' => true,
'register' => true,
],
// User validation
'validation' => [
'min_user_name_length' => 4,
'max_user_name_length' => 50,
'min_password_length' => 6,
'password_with_digit' => true, // digit required
'password_with_lcc' => true, // lowercase character required
'password_with_ucc' => true, // uppercase character required
'password_with_nwc' => true, // non-word character required
'allowed_user_name_chars' => str_split('abcdefghijklmnopqrstuvwxyz0123456789-_'),
],
// Monolog settings
'logger' => [
'name' => 'file-sharing',
'path' => __DIR__ . '/../logs/app.log',
'level' => \Monolog\Logger::DEBUG,
],
// upload settings
'upload' => [
'path' => __DIR__ . '/../public/upload/',
],
// Locale settings
'locale' => [
'process' => \App\Utility\LanguageUtility::LOCALE_URL | \App\Utility\LanguageUtility::DOMAIN_DISABLED,
'auto_detect' => true,
'code' => 'en-US', // default / current language
'generic_code' => 'xx-XX', // routes which fits all localizations
'path' => __DIR__ . '/../locale/',
'active' => [], // active locale code domain combinations
],
// Doctrine settings
'doctrine' => [
'meta' => [
'entity_path' => [
'src/Entity'
],
'auto_generate_proxies' => true,
'proxy_dir' => __DIR__.'/../cache/proxies',
'cache' => null,
],
'connection' => [
'driver' => 'pdo_mysql',
'host' => 'localhost',
'port' => 3306,
'dbname' => '',
'user' => '',
'password' => '',
'charset' => 'utf8',
//'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
],
],
// resources for acl
'acl_resources' => [
'create_role' => ['superadmin'],
'create_user' => ['guest', 'admin', 'superadmin'],
'show_role' => ['admin', 'superadmin'],
'show_user' => ['member', 'admin', 'superadmin'], // show own user information
'show_user_other' => ['guest', 'member', 'admin', 'superadmin'], // show user information from other users
'remove_file_other' => ['superadmin'], // delete files from other users
'remove_folder_other' => ['superadmin'], // delete folder from other users
'remove_role' => ['superadmin'], // delete role
'remove_user' => ['member', 'admin', 'superadmin'], // delete own user
'remove_user_other' => ['superadmin'], // delete other users
'update_file_other' => ['superadmin'], // update file information from other users
'update_folder_other' => ['superadmin'], // update folder information from other users
'update_role' => ['superadmin'], // update role information
'update_user' => ['member', 'admin', 'superadmin'], // update own user information
'update_user_other' => ['admin', 'superadmin'], // update user information from other users
],
],
];