forked from taterbase/otalk-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prosody.cfg.lua
executable file
·74 lines (60 loc) · 1.32 KB
/
prosody.cfg.lua
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
admins = { "ADMIN@HOST" }
daemonize = true
pidfile = "/var/run/prosody/prosody.pid"
plugin_paths = { "/opt/otalk-server" }
modules_enabled = {
"roster";
"saslauth";
"tls";
"dialback";
"disco";
"private";
"vcard";
"privacy";
"compression";
"smacks";
"carbons";
"mam";
"lastactivity";
"offline";
"pubsub";
"version";
"uptime";
"time";
"ping";
"pep";
"register";
"adhoc";
"admin_adhoc";
"posix";
"bosh";
"websocket";
"http_altconnect";
"turncredentials";
"idlecompat";
};
allow_registration = false;
ssl = {
key = "/path/to/key";
certificate = "/path/to/cert";
}
c2s_require_encryption = true
s2s_secure_auth = true
cross_domain_bosh = true
authentication = "internal_hashed"
storage = {archive2 = "sql2"}
sql = { driver = "SQLite3", database = "prosody.sqlite" }
default_archive_policy = "roster"
--turncredentials_secret = "yoursecretthing";
--turncredentials = {
-- { type = "stun", host = "8.8.8.8" },
-- { type = "turn", host = "8.8.8.8", port = 3478 },
-- { type = "turn", host = "8.8.8.8", port = 80, transport = "tcp" }
--}
log = {
debug = "/var/log/prosody/prosody.log";
error = "/var/log/prosody/prosody.err";
}
VirtualHost "HOST"
component_ports = { 5347 }
Component "muc.HOST" "muc"