]> git.openstreetmap.org Git - chef.git/blob - cookbooks/mediawiki/templates/default/mw-ext-AbuseFilter.inc.php.erb
Enable resolved prometheus exporter
[chef.git] / cookbooks / mediawiki / templates / default / mw-ext-AbuseFilter.inc.php.erb
1 <?php
2 # DO NOT EDIT - This file is being maintained by Chef
3 wfLoadExtension( 'AbuseFilter' );
4 $wgGroupPermissions['sysop']['abusefilter-modify'] = true;
5 $wgGroupPermissions['*']['abusefilter-log-detail'] = true;
6 $wgGroupPermissions['*']['abusefilter-view'] = true;
7 $wgGroupPermissions['*']['abusefilter-log'] = true;
8 $wgGroupPermissions['sysop']['abusefilter-private'] = true;
9 $wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true;
10 $wgGroupPermissions['sysop']['abusefilter-revert'] = true;
11
12 # Tune AbuseFilter limits
13 # https://github.com/openstreetmap/operations/issues/353
14 $wgAbuseFilterEmergencyDisableThreshold['default'] = 0.30; # 30%
15 $wgAbuseFilterEmergencyDisableCount['default'] = 25;