-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmpp_prosody_conf_host.master
More file actions
166 lines (157 loc) · 4.89 KB
/
Copy pathxmpp_prosody_conf_host.master
File metadata and controls
166 lines (157 loc) · 4.89 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
VirtualHost "{tmpl_var name='domain'}"
enabled = {tmpl_var name='active'};
authentication = "external";
external_auth_command = "/usr/local/lib/prosody/auth/authenticate_isp.sh";
allow_registration = {tmpl_var name='public_registration'};
<tmpl_if name='registration_url' op='!=' value=''>
registration_url = "{tmpl_var name='registration_url'}";
</tmpl_if>
<tmpl_if name='registration_message' op='!=' value=''>
registration_text = "{tmpl_var name='registration_message'}";
</tmpl_if>
no_registration_whitelist = true;
modules_enabled = {
"roster",
"private",
"vcard",
"blocklist",
"pep",
<tmpl_if name='public_registration' op='==' value='true'>
"register",
<tmpl_elseif name='registration_url' op='!=' value=''>
"register_redirect",
</tmpl_if>
"admin_adhoc",
"http",
<tmpl_if name='use_status_host' op='==' value='true'>
"server_status",
</tmpl_if>
<tmpl_if name='use_webpresence' op='==' value='true'>
"webpresence"
</tmpl_if>
};
disco_items = {
{
"{tmpl_var main_host}",
"HTTP File Upload",
},
<tmpl_if name='use_muc' op='==' value='true'>
{
"muc.{tmpl_var name='domain'}",
"{tmpl_var name='muc_name'}",
},
</tmpl_if>
<tmpl_if name='use_pubsub' op='==' value='true'>
{
"pubsub.{tmpl_var name='domain'}",
"{tmpl_var name='domain'} Publish/Subscribe",
},
</tmpl_if>
<tmpl_if name='use_proxy' op='==' value='true'>
{
"proxy.{tmpl_var name='domain'}",
"{tmpl_var name='domain'} Bytestream Proxy",
},
</tmpl_if>
<tmpl_if name='use_vjud' op='==' value='true'>
{
"vjud.{tmpl_var name='domain'}",
"{tmpl_var name='domain'} User Directory",
},
</tmpl_if>
};
admins = {
{tmpl_var name='domain_admins'}
};
<tmpl_if name='ssl_cert' op='==' value='true'>
ssl = {
key = "/etc/prosody/certs/{tmpl_var name='domain'}.key",
certificate = "/etc/prosody/certs/{tmpl_var name='domain'}.crt",
};
</tmpl_if>
http_host = 'xmpp.{tmpl_var name='domain'}';
<tmpl_if name='use_status_host' op='==' value='true'>
server_status_basepath = "/xmppd/";
server_status_json = true;
server_status_shown_hosts = {
"{tmpl_var name='domain'}",
<tmpl_if name='use_anon_host' op='==' value='true'>
"anon.fuermann.net",
</tmpl_if>
};
server_status_shown_comps = {
<tmpl_if name='use_pubsub' op='==' value='true'>
"pubsub.{tmpl_var name='domain'}",
</tmpl_if>
<tmpl_if name='use_proxy' op='==' value='true'>
"proxy.{tmpl_var name='domain'}",
</tmpl_if>
<tmpl_if name='use_vjud' op='==' value='true'>
"vjud.{tmpl_var name='domain'}",
</tmpl_if>
<tmpl_if name='use_muc' op='==' value='true'>
"muc.{tmpl_var name='domain'}",
</tmpl_if>
}
</tmpl_if>
<tmpl_if name='use_muc' op='==' value='true'>
Component "muc.{tmpl_var name='domain'}" "muc"
modules_enabled = {
"muc_limits",
"muc_log",
<tmpl_if name='use_archive' op='==' value='true'>
"muc_log_http",
</tmpl_if>
<tmpl_if name='use_pastebin' op='==' value='true'>
"pastebin",
</tmpl_if>
};
muc_event_rate = 0.5;
muc_burst_factor = 8;
muc_log_presences = false;
<tmpl_if name='use_archive' op='==' value='true'>
muc_log_http = {
show_join = {tmpl_var name='archive_join'},
show_presence = {tmpl_var name='archive_join'},
show_status = {tmpl_var name='archive_status'},
theme = "prosody",
url_base = "logs",
};
</tmpl_if>
<tmpl_if name='use_pastebin' op='==' value='true'>
pastebin_threshold = 500;
pastebin_line_threshold = 4;
pastebin_expire_after = {tmpl_var name='pastebin_expire'};
pastebin_trigger = "{tmpl_var name='pastebin_trigger'}";
</tmpl_if>
name = "{tmpl_var name='muc_name'}";
restrict_room_creation = "{tmpl_var name='muc_restrict_room_creation'}";
max_history_messages = 20;
admins = {
{tmpl_var name='muc_admins'}
};
</tmpl_if>
<tmpl_if name='use_pubsub' op='==' value='true'>
Component "pubsub.{tmpl_var name='domain'}" "pubsub"
name = "{tmpl_var name='domain'} Publish/Subscribe";
</tmpl_if>
<tmpl_if name='use_proxy' op='==' value='true'>
Component "proxy.{tmpl_var name='domain'}" "proxy65"
proxy65_acl = {
"{tmpl_var name='domain'}",
};
</tmpl_if>
<tmpl_if name='use_vjud' op='==' value='true'>
Component "vjud.{tmpl_var name='domain'}" "vjud"
ud_disco_name = "{tmpl_var name='domain'} User Directory";
vjud_mode = "{tmpl_var name='vjud_opt_mode'}";
</tmpl_if>
<tmpl_if name='use_anon_host' op='==' value='true'>
VirtualHost "anon.{tmpl_var name='domain'}"
enabled = true;
authentication = "anonymous";
allow_anonymous_multiresourcing = true;
anonymous_jid_gentoken = "{tmpl_var name='domain'} Anonymous User";
admins = {
};
</tmpl_if>