-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservices.js
31 lines (31 loc) · 1.11 KB
/
services.js
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
module.exports = [{
serviceOn: process.env.storage_PROXY_ON === "true",
log: "📂 Storage Proxied ◀",
baseURL: process.env.storage_HOST,
postPathRegex: /\/convert\/(.*Video|.*Zip|.*Process)|\/file\/path.*|\/motion\/.*/,
getPathRegex: /\/convert\/listProcess|\/shared\/.*|\/file\/path.*|\/motion\/.*|\/database\/.*|\/storage\/health/
}, {
serviceOn: process.env.schedule_PROXY_ON === "true",
log: "⌚ Scheduler Proxied ◀",
baseURL: process.env.schedule_HOST,
postPathRegex: /\/task\/.*/,
getPathRegex: /\/schedule\/health|\/memory\/status|\/task\/list/
}, {
serviceOn: process.env.livestream_PROXY_ON === "true",
log: "👀 Livestream Proxied ◀",
baseURL: process.env.livestream_HOST,
postPathRegex: /\/livestream\/.*/,
getPathRegex: /\/livestream\/.*/
}, {
serviceOn: process.env.object_PROXY_ON === "true",
log: "🔭 Object Proxied ◀",
baseURL: process.env.object_HOST,
postPathRegex: /\/object.*/,
getPathRegex: /\/object.*/
}, {
serviceOn: process.env.command_PROXY_ON === "true",
log: "🎮 Command Proxied ◀",
baseURL: process.env.command_HOST,
postPathRegex: /\/.*/,
getPathRegex: /\/.*/
}]