Skip to content

Commit

Permalink
femiwiki: Import from hotfixes (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 authored Oct 13, 2024
1 parent bb69973 commit 73cf68f
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions dockers/femiwiki/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
'handlers' => [
'stream' => [
'class' => '\\Monolog\\Handler\\StreamHandler',
'args' => [ 'php://stdout' ],
'args' => [ 'php://stdout', 'info' ],
'formatter' => 'json'
],
],
Expand Down Expand Up @@ -180,6 +180,8 @@
// Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = '/usr/bin/diff3';

$wgBlockTargetMigrationStage = SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_OLD;

// Default skin: you can change the default skin. Use the internal symbolic
// names, ie 'vector', 'monobook':
$wgDefaultSkin = 'femiwiki';
Expand Down Expand Up @@ -249,6 +251,14 @@

// Permission
$wgGroupPermissions['*']['createaccount'] = true;
$wgGroupPermissions['user']['flow-hide'] = false;
$wgGroupPermissions['user']['flow-lock'] = false;
$wgGroupPermissions['user']['editcontentmodel'] = false;
$wgGroupPermissions['user']['move'] = false;
$wgGroupPermissions['autoconfirmed']['flow-hide'] = true;
$wgGroupPermissions['autoconfirmed']['flow-lock'] = true;
$wgGroupPermissions['autoconfirmed']['editcontentmodel'] = true;
$wgGroupPermissions['autoconfirmed']['move'] = true;
$wgGroupPermissions['sysop']['renameuser'] = true;
$wgGroupPermissions['sysop']['interwiki'] = true;
$wgGroupPermissions['sysop']['import'] = false;
Expand All @@ -266,6 +276,7 @@
$wgGroupPermissions['blocker']['block'] = true;
$wgGroupPermissions['blocker']['blockemail'] = true;
$wgGroupPermissions['blocker']['unblockself'] = true;
$wgGroupPermissions['rollbacker']['rollback'] = true;

// FemiwikiTeam is just a list of all Femiwiki team member
$wgGroupPermissions['femiwiki-team']['editprotected'] = true;
Expand Down Expand Up @@ -390,7 +401,10 @@

// AbuseFilter
wfLoadExtension( 'AbuseFilter' );
$wgAbuseFilterEnableBlockedExternalDomain = true;
$wgGroupPermissions['sysop']['abusefilter-modify'] = false;
$wgGroupPermissions['abusefilter']['abusefilter-bypass-blocked-external-domains'] = true;
$wgGroupPermissions['abusefilter']['abusefilter-modify-blocked-external-domains'] = true;
$wgGroupPermissions['abusefilter']['abusefilter-modify'] = true;
$wgGroupPermissions['abusefilter']['changetags'] = true;
$wgGroupPermissions['abusefilter']['managechangetags'] = true;
Expand Down Expand Up @@ -799,18 +813,24 @@
wfLoadExtension( 'Scribunto' );
$wgScribuntoDefaultEngine = 'luasandbox';
$wgScribuntoEngineConf['luasandbox']['cpuLimit'] = 3;
$wgScribuntoEngineConf['luasandbox']['memoryLimit'] = 10485760;
$wgScribuntoEngineConf['luasandbox']['memoryLimit'] = 52428800; # 50 MiB

// SecureLinkFixer
wfLoadExtension( 'SecureLinkFixer' );

// SpamBlacklist
wfLoadExtension( 'SpamBlacklist' );
// Empty Meta-Wiki blacklist
$wgBlacklistSettings = [
'spam' => [
'files' => []
]
'files' => [
"https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1",
],
],
'email' => [
'files' => [
"https://meta.wikimedia.org/w/index.php?title=Email_blacklist&action=raw&sb_ver=1",
],
],
];

// SyntaxHighlight
Expand Down

0 comments on commit 73cf68f

Please sign in to comment.