forked from hypertrons/hypertrons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobalConfigTemplate.json
112 lines (111 loc) · 2.95 KB
/
globalConfigTemplate.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"phManager": {
"client": {
"queue": {
"concurrency": 50,
"autoStart": true,
"intervalCap": 600000,
"interval": 0,
"carryoverConcurrencyCount": false,
"timeout": 60000,
"throwOnTimeout": false
},
"retry": {
"retries": 10,
"factor": 2,
"minTimeout": 1000,
"maxTimeout": 60000,
"randomize": false,
"forever": false,
"unref": false,
"maxRetryTime": 600000
}
}
},
"installation": {
"client": {
"configs": [
{
"type": "github",
"config": {
"name": "github",
"endpoint": "https://api.github.com/",
"appId": 0,
"privateKeyPath": "private-key.pem",
"privateKeyPathAbsolute": false,
"webhook": {
"path": "/",
"secret": "test",
"proxyUrl": "https://smee.io/YOUR_PROXY"
},
"fetcher": {
"tokens": ["YOUR TOKEN"]
},
"config": {
"remote": {
"filePath": ".github/hypertrons.json"
},
"private": {
"file": {
"rootPath": "./repo_configs/"
}
}
}
}
},
{
"type": "gitlab",
"config": {
"name": "MyGitLab",
"host": "https://gitlab.your_domain.com/",
"primaryToken": "Robot_token",
"webhook": {
"host": "http://127.0.0.1",
"path": "/",
"secret": "test",
"proxy": "https://smee.io/YOUR_PROXY"
},
"config": {
"remote": {
"filePath": ".gitlab/hypertrons.json"
},
"private": {
"file": {
"rootPath": "./repo_configs/"
}
}
},
"component": {
"file": {
"basePath": "app/component",
"configModule": "config",
"luaModule": "index.lua",
"versionPath": "version.json"
},
"remote": [
{
"type": "github",
"url": "https://github.com/owner/repo",
"token": "token",
"basePath": "app/component",
"configModule": "config",
"luaModule": "index.lua",
"versionPath": "version.json"
}
],
"git": [
{
"url": "https://github.com/owner/repo.git",
"basePath": "app/component",
"configModule": "config",
"luaModule": "index.lua",
"versionPath": "version.json"
}
]
}
}
}
]
}
}
}