-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.json
75 lines (75 loc) · 2.25 KB
/
extension.json
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
{
"name": "CrowdSec",
"author": [
"MPThLee"
],
"url": "https://www.mediawiki.org/wiki/Extension:CrowdSec",
"descriptionmsg": "crowdsec-desc",
"license-name": "GPL-2.0+",
"type": "antispam",
"requires": {
"MediaWiki": ">= 1.35.0"
},
"AvailableRights": [
"crowdsec-bypass"
],
"GroupPermissions": {
"sysop": {
"crowdsec-bypass": true
}
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\CrowdSec\\": "src/"
},
"config": {
"CrowdSecEnable": {
"description": "Enable the CrowdSec feature.",
"value": true
},
"CrowdSecAPIUrl": {
"description": "Define the URL to your CrowdSec LAPI server, default to `http://localhost:8080`.",
"value": "http://127.0.0.1:8080"
},
"CrowdSecAPIKey":{
"description": "CrowdSec Bouncer Key. Key generated by the cscli (CrowdSec cli) command like `cscli bouncers add bouncer-mediawiki`",
"value": ""
},
"CrowdSecCache": {
"description": "CrowdSec's cache config. Default to `true` for performance",
"value": true
},
"CrowdSecCacheTTL": {
"description": "CrowdSec's Cache TTL. In seoncds. default to `604800` which is 7 days. (60 * 60 * 24 * 7)",
"value": 604800
},
"CrowdSecFallbackBan": {
"description": "If enabled, When LAPI throws error, It ban the user. Default to false.",
"value": false
},
"CrowdSecTreatTypesAsBan": {
"description": "Type to treat as ban. Default to `[]`.",
"value": []
},
"CrowdSecRestrictRead": {
"description": "If enabled, IP who blocked doesn't read the wiki at all too. Not recommended to enable this. Default to `false`",
"value": false
},
"CrowdSecReportOnly": {
"description": "For debug purpose. Default to `false`",
"value": false
}
},
"Hooks": {
"AbuseFilter-computeVariable": "MediaWiki\\Extension\\CrowdSec\\Hooks::abuseFilterComputeVariable",
"AbuseFilter-generateUserVars": "MediaWiki\\Extension\\CrowdSec\\Hooks::abuseFilterGenerateUserVars",
"AbuseFilter-builder": "MediaWiki\\Extension\\CrowdSec\\Hooks::abuseFilterBuilder",
"getUserPermissionsErrorsExpensive": "MediaWiki\\Extension\\CrowdSec\\Hooks::onGetUserPermissionsErrorsExpensive",
"OtherBlockLogLink": "MediaWiki\\Extension\\CrowdSec\\Hooks::onOtherBlockLogLink"
},
"MessagesDirs": {
"CrowdSec": [
"i18n"
]
},
"manifest_version": 2
}