blob: da31a33b2a9af7e04d2d3ca664db18cadf2efd4a (
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
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
|
###~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~###
### jackal configuration file ###
###~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~###
#
#
# WARNING: search for "TODO" in this document and replace secrets with something
# custom before uncommenting them.
peppers:
keys:
#v1: m7FFfnHf2g3KsPRPvVjjEiu6uss8tAHg # <-- TODO: please, use your custom key here!
use: v1
#logger:
# level: "debug"
# output_path: "jackal.log"
# Prometheus metrics and pprof
#http_port: 6060
#admin:
# port: 15280
#hosts:
# - domain: jackal.im
# tls:
# cert_file: ""
# privkey_file: ""
storage:
type: pgsql
pgsql:
host: 127.0.0.1:5432
user: jackal
password: password
database: jackal
max_open_conns: 16
cluster:
etcd:
endpoints:
- http://127.0.0.1:2379
port: 14369
shapers:
#- name: super
# max_sessions: 20
# rate:
# limit: 131072
# burst: 65536
# matching:
# jid:
# # in: [admin@localhost]
# regex: ^(admin|otheradmin)@localhost
- name: normal
max_sessions: 10
rate:
limit: 65536
burst: 32768
listeners:
- type: c2s
port: 5222
req_timeout: 60s
transport: socket
sasl:
mechanisms: [scram_sha_1, scram_sha_256]
# Authentication gateway
# (proto: https://github.com/jackal-xmpp/jackal-proto/blob/master/jackal/proto/authenticator/v1/authenticator.proto)
external:
address: 127.0.0.1:4567
is_secure: false
- type: c2s
port: 5223
direct_tls: true
req_timeout: 60s
transport: socket
sasl:
mechanisms: [scram_sha_1, scram_sha_256]
- type: s2s
port: 5269
req_timeout: 60s
max_stanza_size: 131072
- type: s2s
port: 5270
direct_tls: true
req_timeout: 60s
max_stanza_size: 131072
s2s_out:
# dialback_secret: s3cr3tf0rd14lb4ck <-- TODO: Use a custom secret here
dial_timeout: 5s
req_timeout: 60s
max_stanza_size: 131072
modules:
# enabled:
# - roster
# - offline
# - disco
# - private
# - vcard
# - version
# - caps
# - ping
# - carbons
#
# version:
# show_os: true
#
# offline:
# queue_size: 300
#
# ping:
# ack_timeout: 90s
# interval: 3m
# send_pings: true
# timeout_action: kill
#
# external:
# - name: ext_mod_1
# address: 127.0.0.1:4569
# is_secure: false
# request_timeout: 60s
#
# event_handler:
# topics: # notify c2s connect/disconnect events
# - c2s.stream.registered
# - c2s.stream.unregistered
#
# iq_handler:
# namespace:
# in: [ https://jackal.im ]
# # reg_ex: ^org.jackal.+
#
# message_handler:
# pre_processor: true
# pre_router: true
components:
|