forked from ziofat/nodebb-plugin-ali-oss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.json
20 lines (19 loc) · 901 Bytes
/
plugin.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"id": "nodebb-plugin-alioss-new",
"name": "Aliyun OSS Upload File And Image Plugin",
"description": "A plugin for NodeBB to take file uploads and store them on Aliyun OSS, NodeBB version >= nodebb 1.15*, Less than 1.15 unknown compatibility \n; ",
"url": "https://github.com/cgh1999520/nodebb-plugin-alioss-new",
"library": "./index.js",
"staticDirs": {
"oss": "../../public"
},
"hooks": [
{ "hook": "static:app.load", "method": "load"},
{ "hook": "action:plugin.activate", "method": "activate"},
{ "hook": "action:plugin.deactivate", "method": "deactivate"},
{ "hook": "filter:admin.header.build", "method": "admin.menu"},
{ "hook": "filter:uploadImage", "method": "uploadImage", "priority": 6 },
{ "hook": "filter:uploadFile", "method": "uploadFile", "priority": 6 }
],
"templates": "./templates"
}