summaryrefslogtreecommitdiff
path: root/files/prosody.cfg.lua
blob: 89d426e8d1b357847648492c81da5e33cbcc6a94 (plain)
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
-- SPDX-FileCopyrightText: 2024 Matthew Fennell <matthew@fennell.dev>
--
-- SPDX-License-Identifier: AGPL-3.0-only

admins = { }

plugin_paths = { "/usr/local/lib/prosody/modules" }

modules_enabled = {
    "admin_adhoc";
    "admin_shell";
    "blocklist";
    "bookmarks";
    "carbons";
    "csi_simple";
    "dialback";
    "disco";
    "invites";
    "invites_adhoc";
    "invites_register";
    "limits";
    "mam";
    "mimicking";
    "pep";
    "ping";
    "posix";
    "private";
    "proxy65";
    "register";
    "roster";
    "saslauth";
    "smacks";
    "time";
    "tls";
    "uptime";
    "vcard4";
    "vcard_legacy";
    "version";
}

modules_disabled = { }

pidfile = "/run/prosody/prosody.pid";

log = {
    info = "/var/log/prosody/prosody.log";
    error = "/var/log/prosody/prosody.err";
    { levels = { "error" }; to = "syslog";  };
}

s2s_secure_auth = true
s2s_require_encryption = true
c2s_require_encryption = true
authentication = "internal_hashed"
certificates = "certs"

allow_registration = true

limits = {
    c2s = {
        rate = "10kb/s";
    };
    s2sin = {
        rate = "30kb/s";
    };
}

archive_expires_after = "3y"

Include "conf.d/*.cfg.lua"