-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdefaults.ts
More file actions
34 lines (28 loc) · 1.11 KB
/
defaults.ts
File metadata and controls
34 lines (28 loc) · 1.11 KB
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
export default {
mesa_namespace: process.env.MESA_NAMESPACE || 'api',
/**
* The amount of members a room needs to hit for a Portal (VM) to be created / queued (default 2)
*/
min_member_portal_creation_count: parseInt(process.env.MIN_MEMBER_PORTAL_CREATION_COUNT || '2'),
/**
* The maximum amount of members a room can have (default 10)
*/
max_room_member_count: parseInt(process.env.MAX_ROOM_MEMBER_COUNT || '10'),
/**
* Whenever destroy portals when room gets empty
*/
destroy_portal_when_empty: typeof process.env.DESTROY_PORTAL_WHEN_EMPTY !== 'undefined' ?
(process.env.DESTROY_PORTAL_WHEN_EMPTY === 'true') : true,
/**
* The timeout before an empty room gets their portal destroyed in seconds (default 5)
*/
empty_room_portal_destroy: parseInt(process.env.EMPTY_ROOM_PORTAL_DESTROY || '5'),
/**
* The user IDs that are allowed to create rooms, comma (,) separated
*/
room_whitelist: (process.env.ROOM_WHITELIST === 'true'),
/**
* The user IDs that are allowed to create rooms, comma (,) separated
*/
allowed_user_ids: (process.env.ALLOWED_USER_IDS || '').split(',')
}