forked from ortuman/jackal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.config.yaml
More file actions
147 lines (130 loc) 路 2.83 KB
/
Copy pathexample.config.yaml
File metadata and controls
147 lines (130 loc) 路 2.83 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
###~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~###
### example configuration file ###
###~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~###
#peppers:
# keys:
# v1: a-super-secret-key
# use: v1
#logger:
# level: "debug"
# output_path: "jackal.log"
# Prometheus metrics, pprof & health check
#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: a-secret-key
# database: jackal
# max_open_conns: 16
#
# cache:
# type: redis
# redis:
# addresses:
# - localhost:6379
#cluster:
# type: kv
# kv:
# type: etcd
# etcd:
# username: root
# endpoints:
# - http://127.0.0.1:2379
#
# server:
# port: 14369
shapers:
- name: super
max_sessions: 20
rate:
limit: 131072
burst: 65536
matching:
jid:
regex: ^(ortuman|noelia).+
- name: normal
max_sessions: 10
rate:
limit: 65536
burst: 32768
c2s:
listeners:
- port: 5222
req_timeout: 60s
transport: socket
sasl:
mechanisms:
- scram_sha_1
- scram_sha_256
- scram_sha_512
- scram_sha3_512]
# 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
- port: 5223
direct_tls: true
req_timeout: 60s
transport: socket
sasl:
mechanisms:
- scram_sha_1
- scram_sha_256
- scram_sha_512
- scram_sha3_512
s2s:
listeners:
- port: 5269
req_timeout: 60s
max_stanza_size: 131072
- port: 5270
direct_tls: true
req_timeout: 60s
max_stanza_size: 131072
out:
dialback_secret: a-super-secret-key
dial_timeout: 5s
req_timeout: 60s
max_stanza_size: 131072
modules:
# enabled:
# - roster
# - offline
# - last # XEP-0012: Last Activity
# - disco # XEP-0030: Service Discovery
# - private # XEP-0049: Private XML Storage
# - vcard # XEP-0054: vcard-temp
# - version # XEP-0092: Software Version
# - caps # XEP-0115: Entity Capabilities
# - blocklist # XEP-0191: Blocking Command
# - stream_mgmt # XEP-0198: Stream Management
# - ping # XEP-0199: XMPP Ping
# - time # XEP-0202: Entity Time
# - carbons # XEP-0280: Message Carbons
#
# version:
# show_os: true
#
# offline:
# queue_size: 300
#
# ping:
# ack_timeout: 90s
# interval: 3m
# send_pings: true
# timeout_action: kill
components:
secret: a-super-secret-key
listeners:
- port: 5275