summaryrefslogtreecommitdiff
path: root/files/virtual_host.cfg.lua.j2
blob: 5a6064ab8f69f0fdf90f0309b7b060e41fe0e436 (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
-- SPDX-FileCopyrightText: 2024 Matthew Fennell <matthew@fennell.dev>
--
-- SPDX-License-Identifier: AGPL-3.0-only

VirtualHost "{{ virtual_host }}"

turn_external_host = "turn.{{ virtual_host }}"
turn_external_secret = "{{ turn_secret }}"

site_name = "{{ virtual_host }}"

Component "upload.{{ virtual_host }}" "http_file_share"
http_file_share_expires_after = 10 * 365 * 24 * 60 * 60

Component "conference.{{ virtual_host }}" "muc"
modules_enabled = {
  "muc_mam";
  "vcard_muc";
}

muc_log_expires_after = "10y"
log_all_rooms = true

restrict_room_creation = "local"
max_history_messages = 1000
enforce_registered_nickname = true

muc_room_default_public = false
muc_room_default_persistent = true
muc_room_default_members_only = false
muc_room_default_moderated = false
muc_room_default_public_jids = true
muc_room_default_change_subject = false
muc_room_default_history_length = 1000
muc_room_default_language = "en"