-
Notifications
You must be signed in to change notification settings - Fork 376
/
Copy pathprosody.cfg.lua
70 lines (54 loc) · 1.3 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
-- This server configuration is insecure by design
-- DO NOT COPY BLINDLY
-- see https://prosody.im/doc/configure
local lfs = Lua.require "lfs";
plugin_paths = { "modules" }
plugin_server = "https://modules.prosody.im/rocks/"
installer_plugin_path = lfs.currentdir() .. "/modules";
modules_enabled = {
"roster";
"saslauth";
"tls";
"dialback";
"disco";
"ping";
"register";
"posix";
"bosh";
"websocket";
"time";
"version";
"smacks";
"sasl2";
"sasl2_bind2";
"sasl2_sm";
"sasl2_fast";
"csi_simple";
};
modules_disabled = {
"s2s";
}
pidfile = lfs.currentdir() .. "/prosody.pid";
allow_registration = true;
allow_unencrypted_plain_auth = true;
c2s_require_encryption = false;
consider_websocket_secure = true;
consider_bosh_secure = true;
cross_domain_bosh = true;
cross_domain_websocket = true;
authentication = "internal_plain"
c2s_direct_tls_ports = { 5223 };
log = {
debug = lfs.currentdir() .. "/prosody.log";
error = lfs.currentdir() .. "/prosody.err";
}
ssl = {
certificate = lfs.currentdir() .. "/certs/localhost.crt";
key = lfs.currentdir() .. "/certs/localhost.key";
}
data_path = lfs.currentdir()
VirtualHost "localhost"
Component "component.localhost"
component_secret = "mysecretcomponentpassword"
VirtualHost "anon.localhost"
authentication = "anonymous"