-
-
Notifications
You must be signed in to change notification settings - Fork 247
/
LocalSettings.php
7138 lines (6878 loc) · 168 KB
/
LocalSettings.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/** LocalSettings.php for Miraheze. */
// Don't allow web access.
if ( !defined( 'MEDIAWIKI' ) ) {
die( 'Not an entry point.' );
}
if ( PHP_SAPI !== 'cli' ) {
header( "Cache-control: no-cache" );
}
setlocale( LC_ALL, 'en_US.UTF-8' );
$mwtask = strpos( wfHostname(), 'mwtask' ) === 0;
// Higher on mwtask
if ( $mwtask ) {
// 4000MiB
ini_set( 'memory_limit', 4000 * 1024 * 1024 );
} else {
// 1400MiB
ini_set( 'memory_limit', 1400 * 1024 * 1024 );
}
// Configure PHP request timeouts.
if ( PHP_SAPI === 'cli' ) {
$wgRequestTimeLimit = 0;
} elseif ( $mwtask ) {
if ( strpos( $_SERVER['HTTP_HOST'] ?? '', 'videoscaler.' ) === 0 ) {
$wgRequestTimeLimit = 86400;
} elseif ( strpos( $_SERVER['HTTP_HOST'] ?? '', 'jobrunner-high.' ) === 0 ) {
$wgRequestTimeLimit = 259200;
} elseif ( strpos( $_SERVER['HTTP_HOST'] ?? '', 'jobrunner.' ) === 0 ) {
// We have to set this to the highest we require a job to run for.
$wgRequestTimeLimit = 1200;
}
} elseif ( $_SERVER['REQUEST_METHOD'] === 'POST' ) {
$wgRequestTimeLimit = 200;
} else {
$wgRequestTimeLimit = 60;
}
/**
* When using ?forceprofile=1, a profile can be found as an HTML comment
* Disabled on production hosts because it seems to be causing performance issues (how ironic)
*/
$forceprofile = $_GET['forceprofile'] ?? 0;
if ( $forceprofile == 1 && extension_loaded( 'xhprof' ) ) {
$xhprofFlags = XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY | XHPROF_FLAGS_NO_BUILTINS;
xhprof_enable( $xhprofFlags );
$wgProfiler = [
'class' => ProfilerXhprof::class,
'flags' => $xhprofFlags,
'running' => true,
'output' => 'text',
];
// Don't need a global here
unset( $xhprofFlags );
$wgHTTPTimeout = 60;
} elseif ( PHP_SAPI === 'cli' && extension_loaded( 'xhprof' ) ) {
$xhprofFlags = XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY | XHPROF_FLAGS_NO_BUILTINS;
$wgProfiler = [
'class' => ProfilerXhprof::class,
'flags' => $xhprofFlags,
'output' => 'text',
];
// Don't need a global here
unset( $xhprofFlags );
}
// Show custom database maintenance error page on these clusters.
$wgDatabaseClustersMaintenance = [];
require_once '/srv/mediawiki/config/initialise/MirahezeFunctions.php';
$wi = new MirahezeFunctions();
// Load PrivateSettings (e.g. $wgDBpassword)
require_once '/srv/mediawiki/config/PrivateSettings.php';
// Load global skins and extensions
require_once '/srv/mediawiki/config/GlobalExtensions.php';
require_once '/srv/mediawiki/config/GlobalSkins.php';
$wgPasswordSender = '[email protected]';
$wmgUploadHostname = 'static.wikitide.net';
// $wgStatsFormat = 'dogstatsd';
// $wgStatsTarget = 'udp://localhost:9125';
// graphite151
// $wgStatsdServer = '10.0.15.145';
$passwordNamespaceClassName = $wi->version >= '1.43' ? 'MediaWiki\\Password\\' : '';
$wgConf->settings += [
// Invalidates user sessions - do not change unless it is an emergency!
'wgAuthenticationTokenVersion' => [
'default' => '10',
],
'wgEnableEditRecovery' => [
'default' => true
],
'wgPrivilegedGroups' => [
'default' => [ 'bureaucrat', 'checkuser', 'interface-admin', 'suppress', 'sysop' ],
'+metawiki' => [ 'steward', 'techteam' ],
],
// 'pagelinks' table migration
'wgPageLinksSchemaMigrationStage' => [
'default' => SCHEMA_COMPAT_NEW,
],
// 3D
'wg3dProcessor' => [
'ext-3d' => [
'/usr/bin/xvfb-run',
'-a',
'-s',
'-ac -screen 0 1280x1024x24',
'/srv/3d2png/src/3d2png.js',
],
],
// AbuseFilter
'wgAbuseFilterActions' => [
'default' => [
'block' => true,
'blockautopromote' => true,
'degroup' => true,
'disallow' => true,
'rangeblock' => false,
'tag' => true,
'throttle' => true,
'warn' => true,
],
],
'wgAbuseFilterCentralDB' => [
'default' => 'metawiki',
'beta' => 'metawikibeta',
],
'wgAbuseFilterIsCentral' => [
'default' => false,
'metawiki' => true,
'metawikibeta' => true,
],
'wgAbuseFilterBlockDuration' => [
'default' => 'indefinite',
],
'wgAbuseFilterAnonBlockDuration' => [
'default' => 2592000,
],
'wgAbuseFilterNotifications' => [
'default' => 'udp',
],
'wgAbuseFilterLogPrivateDetailsAccess' => [
'default' => true,
],
'wgAbuseFilterPrivateDetailsForceReason' => [
'default' => true,
],
'wgAbuseFilterEmergencyDisableThreshold' => [
'default' => [
'default' => 0.05,
],
],
'wgAbuseFilterEmergencyDisableCount' => [
'default' => [
'default' => 2,
],
],
// AdminLinks
'wgAdminLinksDelimiter' => [
'default' => '•',
],
// Anti-spam
'wgAccountCreationThrottle' => [
'default' => [
[
'count' => 3,
'seconds' => 300,
],
[
'count' => 10,
'seconds' => 86400,
],
],
],
'wgPasswordAttemptThrottle' => [
'default' => [
// this is X attempts per IP globally
// user accounts are not taken into consideration
[
/** 5 attempts in 5 minutes */
'count' => 5,
'seconds' => 300,
],
[
/** 40 attempts in 24 hours */
'count' => 40,
'seconds' => 86400,
],
[
/** 60 attempts in 48 hours */
'count' => 60,
'seconds' => 172800,
],
[
/** 75 attempts in 72 hours */
'count' => 75,
'seconds' => 259200,
],
],
],
// https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:SpamBlacklist#Block_list_syntax
'wgBlacklistSettings' => [
'default' => [
'spam' => [
'files' => [
'https://meta.miraheze.org/wiki/MediaWiki:Global_spam_blacklist?action=raw&sb_ver=1',
],
],
],
'beta' => [
'spam' => [
'files' => [
'https://meta.mirabeta.org/wiki/MediaWiki:Global_spam_blacklist?action=raw&sb_ver=1',
],
],
],
],
'wgLogSpamBlacklistHits' => [
'default' => true,
],
'wgTitleBlacklistLogHits' => [
'default' => true,
],
// ApprovedRevs
'egApprovedRevsAutomaticApprovals' => [
'default' => true,
],
'egApprovedRevsBlankFileIfUnapproved' => [
'default' => false,
],
'egApprovedRevsBlankIfUnapproved' => [
'default' => false,
],
'egApprovedRevsEnabledNamespaces' => [
'default' => [
NS_MAIN => true,
NS_USER => true,
NS_FILE => true,
NS_TEMPLATE => true,
NS_HELP => true,
NS_PROJECT => true
],
],
'egApprovedRevsFileAutomaticApprovals' => [
'default' => true,
],
'egApprovedRevsFileShowApproveLatest' => [
'default' => false,
],
'egApprovedRevsShowApproveLatest' => [
'default' => false,
],
'egApprovedRevsShowNotApprovedMessage' => [
'default' => false,
],
// ArticleCreationWorkflow
'wgArticleCreationLandingPage' => [
'default' => 'Project:Article wizard',
],
'wgUseCustomLandingPageStyles' => [
'default' => true,
],
// ArticlePlaceholder
'wgArticlePlaceholderImageProperty' => [
'default' => 'P18',
],
'wgArticlePlaceholderReferencesBlacklist' => [
'default' => 'P143',
],
'wgArticlePlaceholderSearchEngineIndexed' => [
'default' => false,
],
'wgArticlePlaceholderRepoApiUrl' => [
'default' => 'https://www.wikidata.org/w/api.php',
],
// Babel
'wgBabelCategoryNames' => [
'default' => [
'0' => 'User %code%-0',
'1' => 'User %code%-1',
'2' => 'User %code%-2',
'3' => 'User %code%-3',
'4' => 'User %code%-4',
'5' => 'User %code%-5',
'N' => 'User %code%-N',
],
],
'wgBabelMainCategory' => [
'default' => 'User %code%',
],
// BetaFeatures
'wgMediaViewerIsInBeta' => [
'default' => false,
],
'wgVisualEditorEnableWikitextBetaFeature' => [
'default' => false,
],
'wgVisualEditorEnableDiffPageBetaFeature' => [
'default' => false,
],
'wgPopupsReferencePreviewsBetaFeature' => [
'default' => true,
],
// Block
'wgAutoblockExpiry' => [
// 24 hours * 60 minutes * 60 seconds
'default' => 86400,
],
'wgBlockAllowsUTEdit' => [
'default' => true,
],
'wgEnableBlockNoticeStats' => [
'default' => false,
],
'wgEnablePartialActionBlocks' => [
'default' => true,
],
// 'block' table migration, remove for 1.43
'wgBlockTargetMigrationStage' => [
'default' => SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_OLD,
],
// Cache
'wgCacheDirectory' => [
'default' => '/srv/mediawiki/cache',
],
'wgExtensionEntryPointListFiles' => [
'default' => [
'/srv/mediawiki/config/extension-list'
],
],
// Captcha
'wgCaptchaTriggers' => [
'default' => [
'edit' => false,
'create' => false,
'sendemail' => false,
'addurl' => true,
'createaccount' => true,
'badlogin' => true,
'badloginperuser' => true
],
'+ext-WikiForum' => [
'wikiforum' => true,
],
'+ext-ContactPage' => [
'contactpage' => true,
],
],
'wgHCaptchaSiteKey' => [
'default' => 'e6d26503-a3fb-47fb-9639-efe259a34a33',
],
// Cargo
'wgCargoDBuser' => [
'default' => 'cargouser2024',
],
'wgCargoFileDataColumns' => [
'default' => [],
'egoishwiki' => [
'mediaType',
'path',
'lastUploadDate',
'fullText',
'numPages',
],
],
'wgCargoPageDataColumns' => [
'default' => [],
'dmlwikiwiki' => [
'creationDate',
'modificationDate',
'creator',
'fullText',
'categories',
'numRevisions',
'isRedirect',
],
'egoishwiki' => [
'creationDate',
'modificationDate',
'creator',
'fullText',
'categories',
'numRevisions',
'isRedirect',
],
],
// Categories
'wgCategoryCollation' => [
// updateCollation.php should be ran after changing
'default' => 'uppercase',
'academiadesusarduwiki' => 'uca-fr',
'holidayswiki' => 'numeric',
'levyraatiwikiwiki' => 'numeric',
'supermanwiki' => 'numeric',
'ext-CategorySortHeaders' => CustomHeaderCollation::class,
],
'wgCategoryPagingLimit' => [
'default' => 200,
],
// CategoryTree
'wgCategoryTreeDefaultMode' => [
'default' => 0,
],
'wgCategoryTreeCategoryPageMode' => [
'default' => 0,
],
'wgCategoryTreeMaxDepth' => [
'default' => [ 10 => 1, 20 => 1, 0 => 2 ],
'100acgwiki' => [ 10 => 5, 20 => 2, 0 => 4, 100 => 1 ],
],
// CentralAuth
'wgCentralAuthAutoCreateWikis' => [
'default' => [
'loginwiki',
'metawiki',
],
'beta' => [
'loginwikibeta',
'metawikibeta',
],
],
'wgCentralAuthAutoMigrate' => [
'default' => true,
],
'wgCentralAuthAutoMigrateNonGlobalAccounts' => [
'default' => true,
],
'wgCentralAuthCookies' => [
'default' => true,
],
'wgCentralAuthCookiePrefix' => [
'default' => 'centralauth_',
'beta' => 'betacentralauth_',
],
'wgCentralAuthDatabase' => [
'default' => 'mhglobal',
'beta' => 'testglobal',
],
'wgCentralAuthEnableGlobalRenameRequest' => [
'default' => true,
],
'wgCentralAuthGlobalBlockInterwikiPrefix' => [
'default' => 'meta',
],
'wgCentralAuthLoginWiki' => [
'default' => 'loginwiki',
'beta' => 'loginwikibeta',
],
'wgCentralAuthOldNameAntiSpoofWiki' => [
'default' => 'metawiki',
'beta' => 'metawikibeta',
],
'wgCentralAuthPreventUnattached' => [
'default' => true,
],
'wmgCentralAuthAutoLoginWikis' => [
'default' => [
'.miraheze.org' => 'metawiki'
],
],
'wgGlobalRenameDenylist' => [
'default' => 'https://meta.miraheze.org/wiki/MediaWiki:Global_rename_blacklist?action=raw',
'beta' => 'https://meta.mirabeta.org/wiki/MediaWiki:Global_rename_blacklist?action=raw',
],
'wgGlobalRenameDenylistRegex' => [
'default' => true,
],
// CentralNotice
'wgNoticeInfrastructure' => [
'default' => false,
'metawiki' => true,
'metawikibeta' => true,
],
'wgCentralSelectedBannerDispatcher' => [
'default' => 'https://meta.miraheze.org/wiki/Special:BannerLoader',
'beta' => 'https://meta.mirabeta.org/wiki/Special:BannerLoader',
],
'wgCentralBannerRecorder' => [
'default' => 'https://meta.miraheze.org/wiki/Special:RecordImpression',
'beta' => 'https://meta.mirabeta.org/wiki/Special:RecordImpression',
],
'wgCentralDBname' => [
'default' => 'metawiki',
'beta' => 'metawikibeta',
],
'wgCentralHost' => [
'default' => 'https://meta.miraheze.org',
'beta' => 'https://meta.mirabeta.org',
],
'wgNoticeProjects' => [
'default' => [
'all',
'optout',
],
],
'wgNoticeUseTranslateExtension' => [
'default' => true,
],
// Chameleon
'egChameleonLayoutFile' => [
'default' => '/srv/mediawiki/config/chameleon-layouts/standard.xml',
],
'egChameleonEnableExternalLinkIcons' => [
'default' => false,
],
// CheckUser
'wgCheckUserForceSummary' => [
'default' => true,
],
'wgCheckUserEnableSpecialInvestigate' => [
'default' => true,
],
'wgCheckUserLogLogins' => [
'default' => true,
],
'wgCheckUserCAtoollink' => [
'default' => 'metawiki',
'beta' => 'metawikibeta',
],
'wgCheckUserGBtoollink' => [
'default' => [
'centralDB' => 'metawiki',
'groups' => [
'steward',
],
],
'beta' => [
'centralDB' => 'metawikibeta',
'groups' => [
'steward',
],
],
],
'wgCheckUserCAMultiLock' => [
'default' => [
'centralDB' => 'metawiki',
'groups' => [
'steward',
],
],
'beta' => [
'centralDB' => 'metawikibeta',
'groups' => [
'steward',
],
],
],
// CirrusSearch
'wgCirrusSearchPrefixSearchStartsWithAnyWord' => [
'default' => false,
'rainversewiki' => true,
],
// Citizen
'wgCitizenThemeDefault' => [
'default' => 'auto',
],
'wgCitizenEnableCollapsibleSections' => [
'default' => true,
],
'wgCitizenGlobalToolsPortlet' => [
'default' => '',
],
'wgCitizenShowPageTools' => [
'default' => 1,
],
'wgCitizenThemeColor' => [
'default' => '#131a21',
],
'wgCitizenSearchGateway' => [
'default' => 'mwActionApi',
],
'wgCitizenSearchDescriptionSource' => [
'default' => 'textextracts',
],
'wgCitizenMaxSearchResults' => [
'default' => 6,
],
'wgCitizenEnableCJKFonts' => [
'default' => false,
],
'wgCitizenOverflowNowrapClasses' => [
'default' => [
'citizen-table-nowrap',
'cargoDynamicTable',
'dataTable',
'smw-datatable',
'srf-datatable',
],
],
// Comments
'wgCommentsDefaultAvatar' => [
'default' => '/' . $wi->version . '/extensions/SocialProfile/avatars/default_ml.gif',
],
'wgCommentsInRecentChanges' => [
'default' => false,
],
'wgCommentsSortDescending' => [
'default' => false,
],
// CommentStreams
'wgCommentStreamsEnableTalk' => [
'default' => false,
],
'wgCommentStreamsEnableSearch' => [
'default' => true,
],
'wgCommentStreamsNewestStreamsOnTop' => [
'default' => false,
],
'wgCommentStreamsUserAvatarPropertyName' => [
'default' => null,
],
'wgCommentStreamsEnableVoting' => [
'default' => false,
],
'wgCommentStreamsModeratorFastDelete' => [
'default' => false,
],
// CommonsMetadata
'wgCommonsMetadataForceRecalculate' => [
'default' => false,
],
// ContactPage
'wmgContactPageRecipientUser' => [
'default' => null,
],
// Used to add a link to Special:Contact on the footer, not from extension
'wmgMirahezeContactPageFooter' => [
'default' => false,
],
// Contribution Scores
'wgContribScoreDisableCache' => [
'default' => true,
],
'wgContribScoreIgnoreBots' => [
'default' => false,
],
// Cookies
'wgCookieExpiration' => [
'default' => 30 * 86400,
],
'wgCookieSameSite' => [
'default' => 'None',
],
'wgCookieSetOnAutoblock' => [
'default' => true,
],
'wgCookieSetOnIpBlock' => [
'default' => true,
],
'wgExtendedLoginCookieExpiration' => [
'default' => 365 * 86400,
],
// Cosmos
'wgCosmosBackgroundImage' => [
'default' => false,
],
'wgCosmosBackgroundImageFixed' => [
'default' => true,
],
'wgCosmosBackgroundImageRepeat' => [
'default' => false,
],
'wgCosmosBackgroundImageSize' => [
'default' => 'cover',
],
'wgCosmosBannerBackgroundColor' => [
'default' => '#c0c0c0',
],
'wgCosmosButtonBackgroundColor' => [
'default' => '#c0c0c0',
],
'wgCosmosContentBackgroundColor' => [
'default' => '#ffffff',
],
'wgCosmosContentWidth' => [
'default' => 'default',
],
'wgCosmosContentOpacityLevel' => [
'default' => 100,
],
'wgCosmosEnablePortableInfoboxEuropaTheme' => [
'default' => true,
],
'wgCosmosEnabledRailModules' => [
'default' => [
'recentchanges' => 'normal',
'interface' => [
'cosmos-custom-rail-module' => 'normal',
'cosmos-custom-sticky-rail-module' => 'sticky',
],
],
],
'wgCosmosEnableWantedPages' => [
'default' => false,
'batmanwiki' => true,
'snapwikiwiki' => true,
],
'wgCosmosFooterBackgroundColor' => [
'default' => '#c0c0c0',
],
'wgCosmosLinkColor' => [
'default' => '#0645ad',
],
'wgCosmosMainBackgroundColor' => [
'default' => '#1A1A1A',
],
'wgCosmosMaxSearchResults' => [
'default' => 6,
],
'wgCosmosSearchDescriptionSource' => [
'default' => 'textextracts',
],
'wgCosmosSearchUseActionAPI' => [
'default' => true,
],
'wgCosmosSocialProfileAllowBio' => [
'default' => true,
],
'wgCosmosSocialProfileFollowBioRedirects' => [
'default' => false,
],
'wgCosmosSocialProfileModernTabs' => [
'default' => true,
],
'wgCosmosSocialProfileNumberofGroupTags' => [
'default' => 2,
],
'wgCosmosSocialProfileRoundAvatar' => [
'default' => true,
],
'wgCosmosSocialProfileShowEditCount' => [
'default' => true,
],
'wgCosmosSocialProfileShowGroupTags' => [
'default' => true,
],
'wgCosmosSocialProfileTagGroups' => [
'default' => [
'bureaucrat',
'bot',
'sysop',
'interface-admin'
],
],
'wgCosmosToolbarBackgroundColor' => [
'default' => '#000000',
],
'wgCosmosUseSocialProfileAvatar' => [
'default' => true,
],
'wgCosmosWikiHeaderBackgroundColor' => [
'default' => '#c0c0c0',
],
'wgCosmosWordmark' => [
'default' => false,
],
// CreatePageUw
'wgCreatePageUwUseVE' => [
'default' => false,
],
// CreateWiki
'wgCreateWikiAIThreshold' => [
'default' => -1,
],
'wgCreateWikiDisallowedSubdomains' => [
'default' => [
'(.*)miraheze(.*)',
'(.*)wikitide(.*)',
'(.*)orain(.*)',
'(.*)mirabeta(.*)',
'(.*)betaheze(.*)',
'(.*)nexttide(.*)',
'subdomain',
'example',
'beta(meta)?',
'prueba',
'community',
'testwiki',
'wikitest',
'help',
'noc',
'wc',
'dc',
'm',
'sandbox',
'outreach',
'gazett?eer',
'semantic(mediawiki)?',
'accounts(internal)?',
'(internal)?tech(internal)?',
'sre',
'smw',
'wikitech',
'wikis?',
'www',
'security',
'donate',
'blog',
'health',
'status',
'acme',
'ssl',
'sslhost',
'sslrequest',
'letsencrypt',
'deployment',
'hostmaster',
'wildcard',
'list',
'localhost',
'mailman',
'webmail',
'phabricator',
'static',
'upload',
'grafana',
'icinga',
'logging',
'monitoring',
'analytics',
'csw(\d+)?',
'matomo(\d+)?',
'prometheus(\d+)?',
'misc\d+',
'db\d+',
'cp\d+',
'mw\d+',
'jobrunner\d+',
'gluster(fs)?(\d+)?',
'ns\d+',
'bacula\d+',
'mail(\d+)?',
'ldap(wiki)?(\d+)?',
'cloud\d+',
'mon\d+',
'bots(\d+)',
'kafka(\d+)?',
'swift(ac|fs|object|proxy)?(\d+)?',
'lizardfs\d+',
'elasticsearch(\d+)?',
'rdb\d+',
'phab(\d+)?',
'services\d+',
'puppet\d+',
'test\d+',
'dbbackup\d+',
'graylog(\d+)?',
'mem\d+',
'jobchron\d+',
'mwtask(\d+)?',
'es\d+',
'os\d+',
'bast(ion)?(\d+)?',
'reports(\d+)?',
'(.*)wiki(pedi)?a(.*)',
'opensearch(\d+)?',
'mywiki',
'phorge(\d+)?',
],
],
'wgCreateWikiCannedResponses' => [
'default' => [
'Approval reasons' => [
'Perfect request' => 'Perfect. Clear purpose, scope, and topic. Please ensure your wiki complies with all aspects of the Content Policy at all times and that it does not deviate from the approved scope or else your wiki may be closed. Thank you for choosing Miraheze!',
'Good request' => 'Pretty good. Purpose and description are a bit vague, but there is nonetheless a clear enough purpose, scope, and/or topic here. Please ensure your wiki complies with all aspects of the Content Policy at all times and that it does not deviate from the approved scope or else your wiki will be closed. Thank you for choosing Miraheze!',
'Okay request' => 'Okay-ish. Description is somewhat vague, but the sitename, URL, and categorization suggest that this is a wiki that would follow the Content Policy made clear by the preceding fields, and it is conditionally approved as such. Please be advised that if your wiki deviates too much from this approval, remedial action can be taken by a Steward, up to and including wiki closure and potential revocation of wiki requesting privileges if necessary. Please ensure your wiki complies with all aspects of Content Policy at all times. Thank you.',
'Categorized as private' => 'The purpose and scope of your wiki is clear enough. Please ensure your wiki complies with all aspects of the Content Policy at all times or it may be closed. Please also note that I have categorized your wiki as "Private". Thank you.',
],
'Decline reasons' => [
'Needs more details' => 'Can you give us more details on the purpose for, scope of, and topic of your wiki, ideally in at least 2-3 sentences? Please update your request via the "Edit request" tab and add to, but do not replace, your existing description. Thank you.',
'Invalid or unclear subdomain' => 'The scope and purpose of your wiki seem clear enough. However, the requested subdomain is either invalid, too generic, conveys a Miraheze affiliation, or suggests that the wiki is an English language or multilingual wiki when it is not. Please change it to something that better reflects your wiki\'s purpose and scope. Thank you.',
'Invalid sitename/subdomain (obscene wording)' => 'The scope and purpose of your wiki seem clear enough. However, the requested wiki name or subdomain is in violation of our Content Policy, which prohibits obscene wording in wiki names and subdomains. Please change it to something that is appropriate. Thank you.',
'Use Public Test Wiki' => 'Please use Public Test Wiki (https://publictestwiki.com) to test the administrator and bureaucrat tools, as well as Miraheze since the wiki is hosted by us. Please follow all local policies, reverting all tests you perform in the reverse order which you performed them. Local permissions can be requested at TestWiki:Request permissions. Thank you.',
'Database exists (wiki active)' => 'A wiki already exists at the selected subdomain. Please visit the local wiki and contribute there. Please reach out to any local bureaucrat to request any permissions if you require them; if bureaucrats are not active on the wiki after a reasonable period of time, please start a local election and ask a Steward to evaluate it at Steward requests. Thank you.',
'Database exists (wiki closed)' => 'A wiki already exists at the selected subdomain selected but is closed. Please visit the Requests for reopening wikis page to request to reopen the wiki or ask for help on the Community portal.',
'Database exists (wiki already deleted)' => 'A wiki already exists at the selected subdomain but has been deleted in accordance with the Dormancy Policy. I will request a Steward undelete it for you. When it has been undeleted and reopened, please visit the local wiki and ensure you make at least one edit or log action every 45 days. Wikis are only deleted after 6 months of complete inactivity; if you require a Dormancy Policy exemption, you should review the policy and request it once your wiki has at least 40-60 content pages. Thank you.',
'Database exists (wiki undeleted)' => 'A wiki already exists at the selected subdomain; it was previously closed/deleted but has been reopened. Please visit the wiki and ensure you make at least one edit or log action every 45 days. Wikis are only deleted after 6 months of complete inactivity. Please reach out to any local bureaucrat to request any permissions if you require them. If bureaucrats are not active on the wiki after a reasonable period of time, please start a local election and ask a Steward to evaluate it at Steward requests. Thank you.',
'Database exists (unrelated purpose)' => 'A wiki already exists at the selected subdomain; however, the wiki does not seem to have the same purpose as the one you are requesting here, so you will need to request a different subdomain. Please update this request once you have selected a new subdomain to reopen it for consideration.',
'Duplicate request (not enough information)' => 'Declining as a duplicate request that needs more information. Please do not edit this request; instead, you should go back into your original request and refrain from submitting duplicate requests in the future. Thank you.',
'Duplicate request (already approved)' => 'Declining as a duplicate of a request that has already been approved. Any changes to your wiki should be made via ManageWiki locally or requested at Steward requests or Phabricator whenever unavailable via ManageWiki. Thank you.',
'Excessive requests' => 'Declining as you have requested an excessive amount of wikis. If you believe you have legitimate need for this amount of wikis, please reply to this request with a 2-3 sentence reasoning on why you need the wikis.',
'Vandal request' => 'Declining as this wiki request is product of either vandalism or trolling.',
'Content Policy (commercial activity)' => 'Declining per Content Policy provision, "The primary purpose of your wiki cannot be for commercial activity." Thank you for understanding. If in error, please edit this wiki request and articulate a clearer purpose and scope for your wiki that makes it clear how this wiki would not violate this criterion of Content Policy.',
'Content Policy (deceive, defraud or mislead)' => 'Declining per Content Policy provision, "Miraheze does not host wikis with the sole purpose of deceiving, defrauding, or misleading people." Thank you for your understanding.',
'Content Policy (duplicate/similar wiki)' => 'Your proposed wiki appears to duplicate, either substantially or entirely, the scope of an existing wiki, which is prohibited by the Content Policy. Please contribute to the existing wiki instead; if you feel that this is in error, please describe in a few sentences how your wiki will not violate this policy. Thank you.',
'Content Policy (file sharing service)' => 'Declining per Content Policy provision, "Miraheze does not host wikis whose main purpose is to act as a file sharing service." Thank you for your understanding.',
'Content Policy (forks)' => 'Declining per Content Policy provision, "Direct forks of other Miraheze wikis where no attempts at mediations are made are not allowed." Thank you for your understanding.',
'Content Policy (illegal US activity)' => 'Declining per Content Policy provision, "Miraheze does not host any content that is illegal in the United States." Thank you for understanding. If you believe this decline reason was used incorrectly, please address this with the declining wiki creator on their user talk page first before escalating your concern to Steward requests. Thank you.',
'Content Policy (makes it difficult for other wikis)' => 'Declining per Content Policy provision, "A wiki must not create problems which make it difficult for other wikis." Thank you for your understanding.',
'Content Policy (no anarchy wikis)' => 'Declining per Content Policy provision, "Miraheze does not host wikis that operate on the basis of an anarchy system (i.e. no leadership and no rules)." Thank you for your understanding.',
'Content Policy (sexual nature involving minors)' => 'Declining per Content Policy provision, "Miraheze does not host wikis of a sexual nature which involve minors in any way." Thank you for your understanding.',
'Content Policy (toxic communities)' => 'Declining per Content Policy provision, "Miraheze does not host wikis where the community has developed in such a way as to be characterised as toxic." Thank you for your understanding.',
'Content Policy (unsubstantiated insult)' => 'Declining per Content Policy provision, "Miraheze does not host wikis which spread unsubstantiated insult, hate or rumours against a person or group of people." Thank you for your understanding.',
'Content Policy (violence, hatred or harrassment)' => 'Declining per Content Policy provision, "Miraheze does not host wikis that promote violence, hatred, or harassment against a person or group of people." Thank you for your understanding.',
'Content Policy (Wikimedia-like wikis/forks)' => 'Declining per Content Policy provision, "Direct forks and forks where a substantial amount of content is copied from a Wikimedia project are not allowed." Thank you for your understanding.',
'Content Policy (Reception wiki)' => 'Declining per Content Policy provision, "Wikis should not be structured around bullet-point, good/bad commentary." Thank you for your understanding.',
/* 'Content Policy (additional restrictions)' => 'Declining per the Content Policy's additional restrictions, which includes the topic of your wiki. Thank you for your understanding.', */
'Author request' => 'Declined at the request of the wiki requester.',
],
'On hold reasons' => [
'On hold pending response' => 'On hold pending response from the wiki requester (see the "Request Comments" tab). Please reply to the questions left by the wiki creator on this request, but do not create another wiki request. Thank you.',
'On hold pending review from another wiki creator' => 'On hold pending review from another wiki creator or a Steward.',
],
],
],
'wgCreateWikiDatabaseClusters' => [
'default' => [
'c1',
'c2',
'c3',
'c4',
],
'beta' => [
'c1',
],
],
'wgCreateWikiDatabaseSuffix' => [
'default' => 'wiki',
'beta' => 'wikibeta',
],
'wgCreateWikiDisableRESTAPI' => [
'default' => true,
'metawiki' => false,
'metawikibeta' => false,
],
'wgCreateWikiEmailNotifications' => [
'default' => true,
],
'wgCreateWikiEnableManageInactiveWikis' => [
'default' => true,
],
'wgCreateWikiNotificationEmail' => [
'default' => '[email protected]',
],
'wgCreateWikiPurposes' => [
'default' => [
'Select an option...' => '',
'Alternate history wiki' => 'Alternate history wiki',
'Class or group project education wiki' => 'Class or group project education wiki',
'Curriculum resource wiki' => 'Curriculum resource wiki',
'Documentation (hardware) wiki' => 'Documentation (hardware) wiki',
'Documentation (software) wiki' => 'Documentation (software) wiki',
'Encyclopedia (general) wiki' => 'Encyclopedia (general) wiki',
'Encyclopedia (specialized) wiki' => 'Encyclopedia (specialized) wiki',
'Eurovision-style song contest statistics tracking wiki' => 'Eurovision-style song contest statistics tracking wiki',
'Fictional worldbuilding/constructed world wiki' => 'Fictional worldbuilding/constructed world wiki',
'Minecraft server wiki' => 'Minecraft server wiki',
'Organization (coordination) wiki' => 'Organization (coordination) wiki',
'Political simulation wiki' => 'Political simulation wiki',