This repository has been archived by the owner on Feb 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
values.yaml
336 lines (291 loc) · 9.71 KB
/
values.yaml
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
# -- Whether or not to deploy a polylith
polylith: true
image:
# -- Docker repository/image to use
name: "matrixdotorg/dendrite-polylith:v0.6.2"
# -- Kubernetes pullPolicy
pullPolicy: IfNotPresent
configuration:
# -- Dendrite config version
version: 2
# -- Servername for this Dendrite deployment
servername: ""
# -- The server name to delegate server-server communications to, with optional port
# e.g. localhost:443
well_known_server_name: ""
# -- Lists of domains that the server will trust as identity servers to verify third
# party identifiers such as phone numbers and email addresses.
trusted_third_party_id_servers:
- matrix.org
- vector.im
# -- Disable federation. Dendrite will not be able to make any outbound HTTP requests
# to other servers and the federation API will not be exposed.
disable_federation: false
# signing key to use
signing_key:
# -- Create a new signing key, if not exists
create: true
# -- Use an existing secret
existingSecret: ""
key_validity_period: 168h0m0s
database:
# -- Default database host
host: ""
# -- Default database user
user: ""
# -- Default database password
password: ""
# -- Default database maximum open connections
max_open_conns: 100
# -- Default database maximum idle connections
max_idle_conns: 2
# -- Default database maximum lifetime
conn_max_lifetime: -1
# prometheus metrics
metrics:
# -- Whether or not Prometheus metrics are enabled.
enabled: false
# HTTP basic authentication to protect access to monitoring.
basic_auth:
# -- HTTP basic authentication username
user: "metrics"
# -- HTTP basic authentication password
password: metrics
# NATS connection settings
jetstream:
# -- The prefix to use for NATS topic names for this homeserver. Change this only if
# you are running more than one Dendrite homeserver on the same NATS deployment.
topic_prefix: "Dendrite"
# -- Keep all storage in memory. This is mostly useful for unit tests.
in_memory: false
# -- Persistent directory to store JetStream streams in. (only relevant if not using external NATS)
storage_path: "./"
# -- List of NATS addresses to connect to. If empty, an in-process NATS server is used.
addresses: []
#- nats://nats-cluster.nats.svc.cluster.local:4222
# TURN server information that this homeserver should send to clients.
turn:
turn_user_lifetime: ""
turn_uris: []
turn_shared_secret: ""
# -- The TURN username
turn_username: ""
# -- The TURN password
turn_password: ""
rate_limiting:
# -- Enable rate limiting
enabled: true
# -- After how many requests a rate limit should be activated
threshold: 5
# -- Cooloff time in milliseconds
cooloff_ms: 500
outbound_proxy:
# -- Whether or not an outbound proxy is needed
enabled: false
# -- Outbound proxy protocol
protocol: http
# -- Outbound proxy host
host: localhost
# -- Outbound proxy port
port: 8080
dns_cache:
# -- Whether or not the DNS cache is enabled.
enabled: false
# -- Maximum number of entries to hold in the DNS cache
cache_size: 256
# -- Duration for how long DNS cache items should be considered valid ([see time.ParseDuration](https://pkg.go.dev/time#ParseDuration) for more)
cache_lifetime: "10m"
# -- Default logging configuration
# @default -- [default dendrite config values](https://github.com/matrix-org/dendrite/blob/master/dendrite-config.yaml)
logging:
- type: std
level: info
- type: file
# The logging level, must be one of debug, info, warn, error, fatal, panic.
level: info
params:
path: ./logs
# -- Default tracing configuration
# @default -- disabled
tracing:
enabled: false
jaeger:
serviceName: ""
disabled: false
rpc_metrics: false
tags: []
sampler: null
reporter: null
headers: null
baggage_restrictions: null
throttler: null
profiling:
# -- Enable pprof
enabled: false
# -- pprof port, if enabled
port: 65432
# -- Configuration for experimental MSC's. (Valid values are: msc2836 and msc2946)
mscs: []
# A list of enabled MSC's
# Currently valid values are:
# - msc2836 (Threading, see https://github.com/matrix-org/matrix-doc/pull/2836)
# - msc2946 (Spaces Summary, see https://github.com/matrix-org/matrix-doc/pull/2946)
# -- Default resource requests/limits.
# This can be set individually for each component, see mediaapi
# @default -- sets some sane default values
resources:
requests:
cpu: "80m"
memory: "64Mi"
limits:
cpu: "240m"
memory: "256Mi"
persistence:
storageClass: local-path
logs:
existingClaim: ""
capacity: "10Gi"
media:
existingClaim: ""
capacity: "10Gi"
# Components to deploy
# listen_int is the port for the internal api connection
# listen_ext is the port to use for external requests
# connect defines the dns and port (should be the same as listen_int) for other services to use for connections
components:
appservice:
# -- listen_int is the port for the internal api connection
listen_int: 7777
# -- Connect is the address for other components to connect to
connect: appservice:7777
clientapi:
# -- listen_int is the port for the internal api connection
listen_int: 7771
# -- listen_ext is the port for external connections
listen_ext: 8071
# -- Connect is the address for other components to connect to
connect: clientapi:7771
registration:
# -- Disable registration
disabled: true
# -- If set, allows registration by anyone who knows the shared secret, regardless of
# whether registration is otherwise disabled.
shared_secret: ""
# -- enable reCAPTCHA registration
enable_registration_captcha: false
# -- reCAPTCHA public key
recaptcha_public_key: ""
# -- reCAPTCHA private key
recaptcha_private_key: ""
# -- reCAPTCHA bypass secret
recaptcha_bypass_secret: ""
recaptcha_siteverify_api: ""
eduserver:
# -- listen_int is the port for the internal api connection
listen_int: 7778
# -- Connect is the address for other components to connect to
connect: eduserver:7778
federationapi:
# -- listen_int is the port for the internal api connection
listen_int: 7772
# -- listen_ext is the port for external connections
listen_ext: 8072
# -- Connect is the address for other components to connect to
connect: federationapi:7772
send_max_retries: 16
# -- Disable TLS validation
disable_tls_validation: false
prefer_direct_fetch: false
keyserver:
# -- listen_int is the port for the internal api connection
listen_int: 7779
# -- Connect is the address for other components to connect to
connect: keyserver:7779
mediaapi:
# -- listen_int is the port for the internal api connection
listen_int: 7774
# -- listen_ext is the port for external connections
listen_ext: 8074
# -- Connect is the address for other components to connect to
connect: mediaapi:7774
# -- The max file size for uploaded media files
max_file_size_bytes: "10485760"
# Whether to dynamically generate thumbnails if needed.
dynamic_thumbnails: false
# -- The maximum number of simultaneous thumbnail generators to run.
max_thumbnail_generators: 10
# -- A list of thumbnail sizes to be generated for media content.
# @default -- [default dendrite config values](https://github.com/matrix-org/dendrite/blob/master/dendrite-config.yaml)
thumbnail_sizes:
- width: 32
height: 32
method: crop
- width: 96
height: 96
method: crop
- width: 640
height: 480
method: scale
#resources:
# requests:
# cpu: "160m"
# memory: "128Mi"
# limits:
# cpu: "480m"
# memory: "512Mi"
roomserver:
# -- listen_int is the port for the internal api connection
listen_int: 7770
# -- Connect is the address for other components to connect to
connect: roomserver:7770
syncapi:
# -- listen_int is the port for the internal api connection
listen_int: 7773
# -- listen_ext is the port for external connections
listen_ext: 8073
# -- Connect is the address for other components to connect to
connect: syncapi:7773
# -- This option controls which HTTP header to inspect to find the real remote IP
# address of the client. This is likely required if Dendrite is running behind
# a reverse proxy server.
real_ip_header: X-Real-IP
userapi:
# -- listen_int is the port for the internal api connection
listen_int: 7781
# -- Connect is the address for other components to connect to
connect: userapi:7781
nats:
# -- Deploy NATS JetStream dependency
enabled: false
nats:
jetstream:
# -- Enable NATS JetStream (required in polylith mode)
enabled: true
postgresql:
# -- Deploy PostgreSQL dependency
enabled: false
global:
storageClass: ""
postgresql:
postgresqlDatabase: ""
postgresqlUsername: ""
existingSecret: ""
postgresqlPassword: ""
servicePort: ""
replicationPassword: ""
initdbScripts:
# -- Create databases when first creating a PostgreSQL Server
# @default -- creates the required databases
create_db.sh: |
#!/bin/sh
for db in userapi_accounts userapi_devices mediaapi syncapi roomserver keyserver federationapi appservice mscs; do
createdb -U dendrite -O dendrite dendrite_$db
done
persistence:
enabled: false
ingress:
# -- Create an ingress for a monolith deployment
enabled: false
annotations: {}
hosts: []
tls: []