forked from miraheze/mw-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Database.php
55 lines (54 loc) · 1.15 KB
/
Database.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
<?php
$wgLBFactoryConf = array(
'class' => 'LBFactoryMulti',
'sectionsByDB' => array(
'allthetropeswiki' => 'c2',
'bpwiki' => 'c2',
'bigforestwiki' => 'c2',
'buswiki' => 'c2',
'centralauth' => 'c2',
'constwiki' => 'c2',
'extloadwiki' => 'c2',
'jawp2chwiki' => 'c2',
'jayuwikiwiki' => 'c2',
'kingkillerwiki' => 'c2',
'librewiki' => 'c2',
'loginwiki' => 'c2',
'maiasongcontestwiki' => 'c2',
'poserdazfreebieswiki' => 'c2',
'supernamuwiki' => 'c2',
'thelonsdalebattalionwiki' => 'c2',
'tmewiki' => 'c2',
),
'sectionLoads' => array(
'DEFAULT' => array(
'db2' => 1,
),
'c1' => array(
'db2' => 1,
),
'c2' => array(
'db3' => 1,
),
),
'serverTemplate' => array(
'dbname' => $wgDBname,
'user' => $wgDBuser,
'password' => $wgDBpassword,
'type' => 'mysql',
),
'hostsByName' => array(
'db2' => '81.4.125.112',
'db3' => '81.4.127.157',
),
'externalLoads' => array(
'echo' => array(
'db2' => 1, // should echo c1
),
),
'readOnlyBySection' => array(
// 'DEFAULT' => '',
// 'c1' => 'Maintenance ongoing on the database server.',
// 'c2' => 'To avoid data loss, this wiki is in read-only mode.',
),
);