/
globalSettings.json-sample
39 lines (39 loc) · 1.54 KB
/
globalSettings.json-sample
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
{
"baseUrl" : "[http://plugins.example.org/api/]",
"useCache" : true,
"renameFolders" : true,
/* If you set a password here you can clean the cache and the temp folders by calling
* ?action=clean_cacheandtemp&confirm=[yourPassword]
*/
// "cleanCacheAndTempPassword" : "",
"urls" : {
/* The github and bitbucket urls should work */
"github" : {
"files" : "https://raw.github.com/:projectOwner/:slug/:branch/:filepath",
"archive" : "https://nodeload.github.com/:projectOwner/:slug/zipball/:branch",
"commits" : "https://api.github.com/repos/:projectOwner/:slug/commits?per_page=1&sha=:branch"
},
"bitbucket" : {
"files" : "https://api.bitbucket.org/1.0/repositories/:projectOwner/:slug/raw/:branch/:filepath",
"archive" : "https://bitbucket.org/:projectOwner/:slug/get/:branch.zip",
"commits" : "https://api.bitbucket.org/1.0/repositories/:projectOwner/:slug/changesets/:branch?limit=1"
},
/* Here you need to add your gitlab host */
"[yourGitlabKey]" : {
"files" : "http://[gitlab.example.org]/:slug/:branch/blob?path=:filepath",
"archive" : "http://[gitlab.example.org]/:slug/repository/archive?ref=:branch",
"commits" : "http://[gitlab.example.org]/api/v2/projects/:slug/repository/branches?private_token=:token"
}
},
"users" : {
"bitbucket" : {
"[bitbucket Read-Users login name]" : "[bitbucket Read-Users password]"
},
"[yourGitlabKey]" : {
"[your Gitlab Read-Users email address]" : {
"pass" : "[your Gitlab Read-Users password]",
"token" : "[your Gitlab Read-Users private token]"
}
}
}
}