-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdendrite.yaml
278 lines (278 loc) · 8.9 KB
/
dendrite.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
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.0.1/charts/library/common/values.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: dendrite
namespace: social
spec:
releaseName: dendrite
interval: 15m
chart:
spec:
# renovate: registryUrl=https://bjw-s.github.io/helm-charts
chart: app-template
version: 3.6.0
interval: 15m
sourceRef:
kind: HelmRepository
name: bjw-s-helm-charts
namespace: flux-system
values:
defaultPodOptions:
tolerations:
- key: "arm"
operator: "Exists"
controllers:
main:
strategy: Recreate
pod:
annotations:
configmap.reloader.stakater.com/reload: "dendrite-config"
secret.reloader.stakater.com/reload: "dendrite-yaml"
securityContext:
fsGroup: 1337
initContainers:
init-db:
image:
repository: ghcr.io/onedr0p/postgres-init
tag: 16.6
env:
INIT_POSTGRES_DBNAME: dendrite
INIT_POSTGRES_HOST: dendrite-psql-v16-rw.default.svc.cluster.local
INIT_POSTGRES_SUPER_PASS: ${SECRET_CNPG_SUPER_PASS}
INIT_POSTGRES_USER: dendrite
INIT_POSTGRES_PASS: ${SECRET_DENDRITE_POSTGRES_PASSWORD}
containers:
main:
image:
repository: ghcr.io/matrix-org/dendrite-monolith
pullPolicy: IfNotPresent
tag: v0.13.8@sha256:d5306ddc5e233480bddb56d922fd7593abf5ee0b279ba642faf39cc3b748caed
env:
TZ: America/Chicago
probes:
liveness:
enabled: true
custom: true
spec:
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 10
httpGet:
path: /_dendrite/monitor/health
port: 8008
readiness:
enabled: true
custom: true
spec:
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 10
httpGet:
path: /_dendrite/monitor/health
port: 8008
startup:
enabled: true
custom: true
spec:
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 10
httpGet:
path: /_dendrite/monitor/up
port: 8008
service:
main:
controller: main
ports:
http:
port: 8008
https:
enabled: true
port: 8448
protocol: HTTPS
ingress:
main:
enabled: true
annotations:
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/custom-http-errors: "418"
nginx.ingress.kubernetes.io/default-backend: "dendrite"
hosts:
- host: dendrite.${SECRET_DOMAIN}
paths:
- path: /
pathType: Prefix
service:
identifier: main
port: http
className: nginx-external
secrets:
yaml:
enabled: true
stringData:
dendrite.yaml: |
version: 2
global:
server_name: "${SECRET_DOMAIN_SECONDARY}"
private_key: matrix_key.pem
key_validity_period: "168h0m0s"
cache:
max_size_estimated: "1gb"
max_age: "1h"
well_known_server_name: "dendrite.${SECRET_DOMAIN}:443"
well_known_client_name: "https://dendrite.${SECRET_DOMAIN}/"
well_known_sliding_sync_proxy: "https://syncv3.${SECRET_DOMAIN}"
trusted_third_party_id_servers:
- matrix.org
- vector.im
disable_federation: false
presence:
enable_inbound: false
enable_outbound: false
report_stats:
enabled: false
endpoint: https://matrix.org/report-usage-stats/push
server_notices:
enabled: false
local_part: "_server"
display_name: "Server alerts"
avatar_url: ""
room_name: "Server Alerts"
jetstream:
addresses:
[]
in_memory: false
storage_path: /var/dendrite/jetstream
topic_prefix: "Dendrite"
metrics:
enabled: false
basic_auth:
username: "metrics"
password: "metrics"
dns_cache:
enabled: false
cache_size: 256
cache_lifetime: 5m
database:
connection_string: postgresql://dendrite:${SECRET_DENDRITE_POSTGRES_PASSWORD}@dendrite-psql-v16-rw.default.svc/dendrite?sslmode=disable
max_open_conns: 90
max_idle_conns: 5
conn_max_lifetime: -1
app_service_api:
config_files:
[]
client_api:
registration_disabled: true
registration_shared_secret: "${SECRET_DENDRITE_REGISTRATION_SECRET}"
enable_registration_captcha: false
recaptcha_public_key: ""
recaptcha_private_key: ""
recaptcha_bypass_secret: ""
recaptcha_siteverify_api: ""
turn:
turn_password: ""
turn_shared_secret: ""
turn_uris: []
turn_user_lifetime: ""
turn_username: ""
rate_limiting:
enabled: true
threshold: 5
cooloff_ms: 500
exempt_user_ids:
federation_api:
send_max_retries: 16
disable_tls_validation: false
key_perspectives:
- keys:
- key_id: ed25519:auto
public_key: Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw
- key_id: ed25519:a_RXGa
public_key: l8Hft5qXKn1vfHrg3p4+W8gELQVo8N13JkluMfmn2sQ
server_name: matrix.org
prefer_direct_fetch: false
key_server:
media_api:
base_path: "/var/dendrite/media"
max_file_size_bytes: 10485760
dynamic_thumbnails: false
max_thumbnail_generators: 10
thumbnail_sizes:
- height: 32
method: crop
width: 32
- height: 96
method: crop
width: 96
- height: 480
method: scale
width: 640
mscs:
mscs:
- msc2836
room_server:
default_room_version: 11
sync_api:
search:
enabled: true
index_path: "/var/dendrite/search"
language: "en"
user_api:
bcrypt_cost: 10
tracing:
enabled: false
jaeger:
baggage_restrictions: null
disabled: false
headers: null
reporter: null
rpc_metrics: false
sampler: null
serviceName: ""
tags: []
throttler: null
logging:
- level: info
params:
path: /var/dendrite-log/dendrite
type: file
persistence:
logs:
globalMounts:
- path: /var/dendrite-log
type: emptyDir
media:
globalMounts:
- path: /var/dendrite/media
existingClaim: dendrite-media-pvc
search:
globalMounts:
- path: /var/dendrite/search
existingClaim: dendrite-search-pvc
jetstream:
globalMounts:
- path: /var/dendrite/jetstream
existingClaim: dendrite-jetstream-pvc
matrix-key:
type: secret
name: dendrite-matrix-key
defaultMode: 384
advancedMounts:
main:
main:
- path: "/etc/dendrite/matrix_key.pem"
subPath: "matrix_key.pem"
dendrite-config:
type: secret
name: dendrite-yaml
advancedMounts:
main:
main:
- path: "/etc/dendrite/dendrite.yaml"
subPath: "dendrite.yaml"