Changeset View
Changeset View
Standalone View
Standalone View
docker/config-main.php
- This file was added.
1 | <?php | ||||
---|---|---|---|---|---|
2 | | ||||
3 | // uncomment the following to define a path alias | ||||
4 | // Yii::setPathOfAlias('local','path/to/local-folder'); | ||||
5 | | ||||
6 | // This is the main Web application configuration. Any writable | ||||
7 | // CWebApplication properties can be configured here. | ||||
8 | return array( | ||||
9 | 'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..', | ||||
10 | 'name' => 'Solena', | ||||
11 | | ||||
12 | // preloading 'log' component | ||||
13 | 'preload' => array('log', 'ldap'), | ||||
14 | | ||||
15 | // autoloading model and component classes | ||||
16 | 'import' => array( | ||||
17 | 'application.models.*', | ||||
18 | 'application.components.*', | ||||
19 | 'application.validators.*', | ||||
20 | 'ext.ldapsuite.*', | ||||
21 | 'ext.yii-mail.*', | ||||
22 | 'application.vendors.PEAR.*', | ||||
23 | ), | ||||
24 | | ||||
25 | 'modules' => array(), | ||||
26 | | ||||
27 | // application components | ||||
28 | 'components' => array( | ||||
29 | 'user' => array( | ||||
30 | 'class' => 'WebUser', | ||||
31 | 'autoUpdateFlash' => false, | ||||
32 | ), | ||||
33 | 'authManager' => array( | ||||
34 | 'class' => 'PhpAuthManager', | ||||
35 | ), | ||||
36 | 'format' => array( | ||||
37 | 'class' => 'application.components.Formatter', | ||||
38 | 'dateFormat' => 'dd/MM/yyyy', | ||||
39 | ), | ||||
40 | 'request' => array( | ||||
41 | 'enableCookieValidation' => true, | ||||
42 | 'enableCsrfValidation' => true, | ||||
43 | 'csrfCookie' => array('secure' => false, 'httpOnly' => false), | ||||
44 | ), | ||||
45 | 'securityManager' => array( | ||||
46 | 'cryptAlgorithm' => 'rijndael-256', | ||||
47 | ), | ||||
48 | /* | ||||
49 | 'urlManager'=>array( | ||||
50 | 'urlFormat'=>'path', | ||||
51 | 'rules'=>array( | ||||
52 | '<controller:\w+>/<id:\d+>'=>'<controller>/view', | ||||
53 | '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', | ||||
54 | '<controller:\w+>/<action:\w+>'=>'<controller>/<action>', | ||||
55 | ), | ||||
56 | ), | ||||
57 | */ | ||||
58 | 'ldap' => array( | ||||
59 | 'class' => 'SLdapServer', | ||||
60 | 'baseDn' => 'dc=kde,dc=org', | ||||
61 | 'bindDn' => 'cn=admin,dc=kde,dc=org', | ||||
62 | 'bindPassword' => 'adminsecret', | ||||
63 | 'operateAsUser' => false, | ||||
64 | 'host' => 'ldap', | ||||
65 | ), | ||||
66 | 'db' => array( | ||||
67 | 'connectionString' => 'mysql:host=mysql;dbname=solenadb', | ||||
68 | 'emulatePrepare' => true, | ||||
69 | 'username' => 'root', | ||||
70 | 'password' => 'root-secret', | ||||
71 | 'charset' => 'utf8', | ||||
72 | ), | ||||
73 | 'mail' => array( | ||||
74 | 'class' => 'ext.yii-mail.YiiMail', | ||||
75 | 'transportType' => 'php', | ||||
76 | 'viewPath' => 'application.views.mail', | ||||
77 | ), | ||||
78 | 'tokenGrid' => array( | ||||
79 | 'class' => 'application.components.TokenGridManager', | ||||
80 | 'gridRows' => 10, | ||||
81 | 'gridColumns' => 10, | ||||
82 | 'tokenLength' => 4, | ||||
83 | 'gridSalt' => '', | ||||
84 | ), | ||||
85 | 'errorHandler' => array( | ||||
86 | 'errorAction' => 'site/error', | ||||
87 | ), | ||||
88 | 'log' => array( | ||||
89 | 'class' => 'CLogRouter', | ||||
90 | 'routes' => array( | ||||
91 | array( | ||||
92 | 'class' => 'CFileLogRoute', | ||||
93 | 'levels' => 'error, warning', | ||||
94 | ), | ||||
95 | ), | ||||
96 | ), | ||||
97 | ), | ||||
98 | | ||||
99 | // application-level parameters | ||||
100 | 'params' => array( | ||||
101 | 'adminEmail' => 'webmaster@example.com', | ||||
102 | 'registerNotify' => 'webmaster@example.com', | ||||
103 | 'registrationUnit' => 'ou=people,dc=kde,dc=org', | ||||
104 | 'defaultGroup' => 'users', | ||||
105 | 'developerGroup' => 'developers', | ||||
106 | 'disabledDeveloperGroup' => 'disabled-developers', | ||||
107 | 'refererWhiteList' => array( | ||||
108 | 'forum.kde.org', | ||||
109 | 'projects.kde.org', | ||||
110 | 'userbase.kde.org', | ||||
111 | 'techbase.kde.org', | ||||
112 | 'community.kde.org' | ||||
113 | ), | ||||
114 | | ||||
115 | 'recaptcha-sitekey' => '6LdYAK4UAAAAAFg_gXp7xUZKlX57B7UYTihayCuL', | ||||
116 | 'recaptcha-secret' => '6LdYAK4UAAAAAJ1xjsAbNq2AEceniL2HHYIevZBP', | ||||
117 | ), | ||||
118 | ); |