This repository has been archived by the owner on May 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jabber.xml.example
369 lines (319 loc) · 9.57 KB
/
jabber.xml.example
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<jabber>
<!--
Logging
-->
<log id='elogger'>
<host/>
<logtype/>
<format>%d: [%t] (%h): %s</format>
<file>log-error</file>
</log>
<log id='rlogger'>
<host/>
<logtype>record</logtype>
<format>%d %h %s</format>
<file>log-record</file>
</log>
<!--
session, replace localhost with your jabber host name
the same value put in <host> tag below
-->
<service id="sessions">
<host><jabberd:cmdline flag="h">localhost</jabberd:cmdline></host>
<jsm xmlns="jabber:config:jsm">
<!--
very important !!!
JSM can support only one virtual domain
you must give this tag to make jabber work
instead of localhost place
your server name, the same as above in host tag -->
<host><jabberd:cmdline flag="h">localhost</jabberd:cmdline></host>
<threads>
<!-- deliver threads -->
<deliver>5</deliver>
<!-- session threads -->
<session>10</session>
<!-- authreg threads -->
<authreg>6</authreg>
</threads>
<!--
stats file with number of users and sessions -->
<stats_file>stats_file</stats_file>
<vCard>
<FN>Jabber Server with pthreads</FN>
<DESC>WPJabber JSM module. By Lukas Karwacki</DESC>
<URL>http://wpjabber.jabberstudio.org/</URL>
</vCard>
<!--
Registration instructions and required fields. The
notify attribute will send the server administrator(s)
a message after each valid registration if the notify
attribute is present.
-->
<!-- to disable new registrations use:
<register deny_new="yes"> -->
<register notify="yes">
<instructions>Choose a username and password to register with this server.</instructions>
<name/>
<email/>
</register>
<!--
A welcome note that is sent to every new user who registers
with your server. Comment it out to disable this function.
-->
<welcome>
<subject>Welcome!</subject>
<body>Welcome to the Jabber server at localhost -- we hope you enjoy this service! For information about how to use Jabber, visit the Jabber User's Guide at http://jabbermanual.jabberstudio.org/</body>
</welcome>
<admin>
<read></read>
<write></write>
<reply>
<subject>Admin message</subject>
<body>Message delivered to admins.</body>
</reply>
</admin>
<browse>
<!--
<item category="service" type="jud" jid="search.localhost" name="Jabber Search Engine">
<ns>jabber:iq:search</ns>
</item>
<item category="service" type="icq" jid="icq.localhost" name="Link with ICQ">
<ns>jabber:iq:gateway</ns>
<ns>jabber:iq:register</ns>
<ns>jabber:iq:search</ns>
</item>
<item category="conference" type="public" jid="conference.localhost" name="Public"/>
<item category="conference" type="private" jid="private.localhost" name="Private"/>
-->
</browse>
<!-- Check users and sessions every x sec-->
<usergc>60</usergc>
<!-- Limit number of contacts -->
<mod_roster>
<maxsize>250</maxsize>
<message>You have to many contacts</message>
<from><jabberd:cmdline flag="h">localhost</jabberd:cmdline></from>
</mod_roster>
<!-- Enable mod status offline -->
<mod_status_offline/>
<!-- Enable mod privacy -->
<mod_privacy/>
<!-- mod version -->
<mod_version>
<!-- <no_os_version/> -->
</mod_version>
<!--
Configuration for mod_presence. By using <bcc>jid</bcc> you
can send a copy of all presences to the configured Jabber address.
By using <presence2xdb/> you can configure that the presence of
the top session should be stored to xdb. This is not used by
jabberd itself, but might be useful if you direct the
http://jabberd.org/ns/storedpresence namespace to xdb_sql and want
to use this information to generate webpages.
-->
<presence>
<!-- <bcc>component.example.com</bcc> -->
<!-- <presence2xdb/> -->
</presence>
<disco>
<identity category='services' type='jabber' name='WPJabber Server'/>
<feature var='jabber:iq:browse'/>
<feature var='jabber:iq:agents'/>
<feature var='jabber:iq:register'/>
<feature var='jabber:iq:time'/>
<feature var='jabber:iq:last'/>
<feature var='jabber:iq:version'/>
<feature var='http://jabber.org/protocol/stats'/>
<feature var='jabber:iq:privacy'/>
</disco>
<!-- If you want everybody to see server stats.
<stats>
<allow_all/>
</stats>
-->
<packet_stats>
<file>stats/packet</file>
<file domain='jabber.wp.pl'>stats/packet_jabber</file>
<file domain='icq.jabber.wp.pl'>stats/packet_icq</file>
<interval>10</interval>
</packet_stats>
</jsm>
<load main="jsm">
<jsm>lib/jsm.so</jsm>
<!-- <mod_packet_stats>lib/jsm.so</mod_packet_stats> -->
<mod_privacy>lib/jsm.so</mod_privacy>
<!-- <mod_echo>lib/jsm.so</mod_echo> -->
<mod_roster>lib/jsm.so</mod_roster>
<mod_announce>lib/jsm.so</mod_announce>
<mod_offline>lib/jsm.so</mod_offline>
<!-- <mod_status_offline>lib/jsm.so</mod_status_offline> -->
<mod_presence>lib/jsm.so</mod_presence>
<mod_auth_plain>lib/jsm.so</mod_auth_plain>
<mod_auth_digest>lib/jsm.so</mod_auth_digest>
<mod_register>lib/jsm.so</mod_register>
<mod_log>lib/jsm.so</mod_log>
<mod_last>lib/jsm.so</mod_last>
<mod_xml>lib/jsm.so</mod_xml>
<mod_agents>lib/jsm.so</mod_agents>
<mod_vcard>lib/jsm.so</mod_vcard>
<mod_time>lib/jsm.so</mod_time>
<mod_version>lib/jsm.so</mod_version>
<mod_browse>lib/jsm.so</mod_browse>
<mod_disco>lib/jsm.so</mod_disco>
<mod_stats>lib/jsm.so</mod_stats>
<!--
<mod_admin>lib/jsm.so</mod_admin>
-->
</load>
</service>
<xdb id="xdbother">
<host/>
<ns>jabber:iq:auth</ns>
<ns>jabber:iq:register</ns>
<ns>jabber:x:delay</ns>
<ns>jabber:iq:last</ns>
<load>
<xdb_file>lib/xdb_file.so</xdb_file>
</load>
<xdb_file xmlns="jabber:config:xdb_file">
<spool><jabberd:cmdline flag='s'>./spool/other</jabberd:cmdline></spool>
<timeout>0</timeout>
<maxfiles>7963</maxfiles>
</xdb_file>
</xdb>
<xdb id="xdbroster">
<host/>
<ns>jabber:iq:roster</ns>
<load>
<xdb_file>./lib/xdb_file.so</xdb_file>
</load>
<xdb_file xmlns="jabber:config:xdb_file">
<spool><jabberd:cmdline flag='s'>./spool/roster</jabberd:cmdline></spool>
<timeout>0</timeout>
<maxfiles>7963</maxfiles>
</xdb_file>
</xdb>
<xdb id="xdboffline">
<host/>
<ns>jabber:x:offline</ns>
<load>
<xdb_file>./lib/xdb_file.so</xdb_file>
</load>
<xdb_file xmlns="jabber:config:xdb_file">
<spool><jabberd:cmdline flag='s'>./spool/offline</jabberd:cmdline></spool>
<timeout>0</timeout>
<maxfiles>7963</maxfiles>
<sizelimit>100000</sizelimit>
</xdb_file>
</xdb>
<xdb id="xdbprivate">
<host/>
<ns/>
<load>
<xdb_file>./lib/xdb_file.so</xdb_file>
</load>
<xdb_file xmlns="jabber:config:xdb_file">
<spool><jabberd:cmdline flag='s'>./spool/private</jabberd:cmdline></spool>
<timeout>0</timeout>
<maxfiles>7963</maxfiles>
</xdb_file>
</xdb>
<!-- connection with external servers -->
<service id="dnsrv">
<host/>
<load>
<dnsrv>lib/dnsrv.so</dnsrv>
</load>
<dnsrv xmlns="jabber:config:dnsrv">
<resend service="_jabber._tcp">s2s</resend>
<resend>s2s</resend>
</dnsrv>
</service>
<service id="s2s">
<load>
<dialback>lib/dialback.so</dialback>
</load>
<dialback xmlns='jabber:config:dialback'>
<ip port="5269"/>
<idletimeout>1000</idletimeout>
<queuetimeout>30</queuetimeout>
<karma>
<init>50</init>
<max>50</max>
<inc>4</inc>
<dec>1</dec>
<penalty>-5</penalty>
<restore>50</restore>
</karma>
</dialback>
</service>
<!-- If you want to log your server load
<wp>
<log file="load_wpj" number="0" time="60"/>
<log file="load_icq" number="1" time="60"/>
</wp>
-->
<io>
<karma>
<heartbeat>2</heartbeat>
<init>-100</init>
<max>50</max>
<inc>4</inc>
<dec>1</dec>
<penalty>-3</penalty>
<restore>50</restore>
</karma>
<rate points="2000" time="1"/>
</io>
<pidfile>jabber.pid</pidfile>
<!-- link to client module -->
<service id="c2s">
<accept>
<log>0</log>
<ip>localhost</ip>
<port>5000</port>
<secret>secret</secret>
<timeout>30</timeout>
</accept>
</service>
<!-- link to JUD -->
<service id="search.localhost">
<accept>
<ip>localhost</ip>
<port>5002</port>
<secret>secret</secret>
<timeout>30</timeout>
</accept>
</service>
<service id="icq.localhost">
<host>sms.icq.localhost</host>
<accept>
<log>1</log>
<ip>localhost</ip>
<port>5555</port>
<secret>secret</secret>
<timeout>30</timeout>
</accept>
</service>
<service id="conference.localhost">
<host>private.localhost</host>
<accept>
<ip>locahost</ip>
<port>5003</port>
<secret>secret</secret>
<timeout>30</timeout>
</accept>
</service>
<!-- link to external jabber with dialback module
<service id="s2s">
<host/>
<accept>
<ip>localhost</ip>
<port>5004</port>
<secret>secret</secret>
<timeout>30</timeout>
</accept>
</service>
-->
</jabber>