forked from FriendSoftwareLabs/presence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.config.js
119 lines (114 loc) · 3.13 KB
/
example.config.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
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
113
114
115
116
117
118
119
/*©agpl*************************************************************************
* *
* This file is part of FRIEND UNIFYING PLATFORM. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Affero General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Affero General Public License for more details. *
* *
* You should have received a copy of the GNU Affero General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *
*****************************************************************************©*/
// DO NOT EDIT example.config.js! Changes will be overwritten.
// Override defaults by adding them to config.js
const server = {
mysql : {
socket : null,
host : 'presence_database_host',
port : 3306,
user : 'presence_database_user',
pass : 'presence_database_password',
name : 'presence_database_name',
},
tls : {
keyPath : 'path_to_key.pem',
certPath : 'path_to_cert.pem',
key : null,
cert : null,
},
// failure to provide a working FQDN means invites wont work
domain : 'presence_domain',
tcp : {
port : 27960,
proxy : null,
},
ws : {
port : 27970,
//proxy : null,
proxy : '/presence/guest/',
},
friendcore : {
useTLS : false,
host : 'friendcore_domain',
port : 6502,
proxy : null,
wsPort : 6498,
wsProxy : null,
serviceKey : null,
serviceName : 'presence',
logEvents : false,
},
account : {
settings : {
},
},
room : {
settings : {
},
},
workroom : {
subsHaveSuperView : true,
supersHaveSubRoom : true,
supersSubHideSuper : true,
showUserList : true,
},
messages : {
forceShowRead : false,
},
tinyAvatar : {
imageSidePX : 128,
},
live : {
userLimit : 0,
webRTCProxy : null,
isStream : null,
isRecording : null,
recordPath : null,
},
janus : {
api_url : null,
api_secret : null,
domain : 'localhost',
port : 13131,
},
};
const shared = {
rtc : {
iceServers : [
{
urls : [
"stun:stun_url.com",
],
},
{
urls : [
"turn:turn_url.com",
],
username : 'turn_username',
credential : 'turn_password',
},
],
},
};
const conf = {
shared : shared,
server : server,
};
module.exports = conf;