author | Luke Hoersten <luke@hoersten.org> |
Sat, 20 Jul 2024 13:51:46 -0500 | |
changeset 234 | f46b0f7e758c |
parent 229 | 7e3bf48e516a |
child 238 | bdbc88cb5078 |
permissions | -rw-r--r-- |
163 | 1 |
# This is the Dendrite configuration file. |
2 |
# |
|
3 |
# The configuration is split up into sections - each Dendrite component has a |
|
4 |
# configuration section, in addition to the "global" section which applies to |
|
5 |
# all components. |
|
6 |
||
7 |
# The version of the configuration file. |
|
180 | 8 |
version: 2 |
163 | 9 |
|
10 |
# Global Matrix configuration. This configuration applies to all components. |
|
11 |
global: |
|
12 |
# The domain name of this homeserver. |
|
13 |
server_name: {{dendrite_name}} |
|
14 |
||
15 |
# The path to the signing private key file, used to sign requests and events. |
|
16 |
# Note that this is NOT the same private key as used for TLS! To generate a |
|
17 |
# signing key, use "./bin/generate-keys --private-key matrix_key.pem". |
|
18 |
private_key: matrix_key.pem |
|
19 |
||
20 |
# The paths and expiry timestamps (as a UNIX timestamp in millisecond precision) |
|
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
21 |
# to old signing keys that were formerly in use on this domain name. These |
163 | 22 |
# keys will not be used for federation request or event signing, but will be |
23 |
# provided to any other homeserver that asks when trying to verify old events. |
|
180 | 24 |
old_private_keys: |
25 |
{% if dendrite_old_key %}- private_key: old_matrix_key.pem |
|
26 |
expired_at: 1626538450 |
|
174 | 27 |
{% endif %} |
163 | 28 |
|
29 |
# How long a remote server can cache our server signing key before requesting it |
|
30 |
# again. Increasing this number will reduce the number of requests made by other |
|
31 |
# servers for our key but increases the period that a compromised key will be |
|
32 |
# considered valid by other homeservers. |
|
33 |
key_validity_period: 168h0m0s |
|
34 |
||
180 | 35 |
# Global database connection pool, for PostgreSQL monolith deployments only. If |
36 |
# this section is populated then you can omit the "database" blocks in all other |
|
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
37 |
# sections. For monolith deployments using SQLite databases, |
180 | 38 |
# you must configure the "database" block for each component instead. |
39 |
database: |
|
40 |
connection_string: postgresql://{{dendrite_db_user}}:{{dendrite_db_pass}}@localhost/{{dendrite_db}}?sslmode=disable |
|
203
4be395f0d127
Reduced number of open connections for dendrite due to startup error.
Luke Hoersten <luke@hoersten.org>
parents:
194
diff
changeset
|
41 |
max_open_conns: 90 |
180 | 42 |
max_idle_conns: 5 |
43 |
conn_max_lifetime: -1 |
|
44 |
||
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
45 |
# Configuration for in-memory caches. Caches can often improve performance by |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
46 |
# keeping frequently accessed items (like events, identifiers etc.) in memory |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
47 |
# rather than having to read them from the database. |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
48 |
cache: |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
49 |
# The estimated maximum size for the global cache in bytes, or in terabytes, |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
50 |
# gigabytes, megabytes or kilobytes when the appropriate 'tb', 'gb', 'mb' or |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
51 |
# 'kb' suffix is specified. Note that this is not a hard limit, nor is it a |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
52 |
# memory limit for the entire process. A cache that is too small may ultimately |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
53 |
# provide little or no benefit. |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
54 |
max_size_estimated: 1gb |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
55 |
|
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
56 |
# The maximum amount of time that a cache entry can live for in memory before |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
57 |
# it will be evicted and/or refreshed from the database. Lower values result in |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
58 |
# easier admission of new cache entries but may also increase database load in |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
59 |
# comparison to higher values, so adjust conservatively. Higher values may make |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
60 |
# it harder for new items to make it into the cache, e.g. if new rooms suddenly |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
61 |
# become popular. |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
62 |
max_age: 1h |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
63 |
|
180 | 64 |
# The server name to delegate server-server communications to, with optional port |
65 |
# e.g. localhost:443 |
|
66 |
well_known_server_name: "" |
|
67 |
||
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
68 |
# The base URL to delegate client-server communications to e.g. https://localhost |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
69 |
well_known_client_name: "" |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
70 |
|
227
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
71 |
# The server name to delegate sliding sync communications to, with optional port. |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
72 |
# Requires `well_known_client_name` to also be configured. |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
73 |
well_known_sliding_sync_proxy: "" |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
74 |
|
163 | 75 |
# Lists of domains that the server will trust as identity servers to verify third |
76 |
# party identifiers such as phone numbers and email addresses. |
|
77 |
trusted_third_party_id_servers: |
|
180 | 78 |
- matrix.org |
79 |
- vector.im |
|
163 | 80 |
|
180 | 81 |
# Disables federation. Dendrite will not be able to communicate with other servers |
82 |
# in the Matrix federation and the federation API will not be exposed. |
|
163 | 83 |
disable_federation: false |
84 |
||
180 | 85 |
# Configures the handling of presence events. Inbound controls whether we receive |
86 |
# presence events from other servers, outbound controls whether we send presence |
|
87 |
# events for our local users to other servers. |
|
88 |
presence: |
|
205
2ea9460dc8d2
Enabled presence events in dendrite.
Luke Hoersten <luke@hoersten.org>
parents:
203
diff
changeset
|
89 |
enable_inbound: true |
2ea9460dc8d2
Enabled presence events in dendrite.
Luke Hoersten <luke@hoersten.org>
parents:
203
diff
changeset
|
90 |
enable_outbound: true |
163 | 91 |
|
180 | 92 |
# Configures phone-home statistics reporting. These statistics contain the server |
93 |
# name, number of active users and some information on your deployment config. |
|
94 |
# We use this information to understand how Dendrite is being used in the wild. |
|
95 |
report_stats: |
|
96 |
enabled: false |
|
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
97 |
endpoint: https://panopticon.matrix.org/push |
163 | 98 |
|
180 | 99 |
# Server notices allows server admins to send messages to all users on the server. |
100 |
server_notices: |
|
101 |
enabled: false |
|
102 |
# The local part, display name and avatar URL (as a mxc:// URL) for the user that |
|
103 |
# will send the server notices. These are visible to all users on the deployment. |
|
104 |
local_part: "_server" |
|
105 |
display_name: "Server Alerts" |
|
106 |
avatar_url: "" |
|
107 |
# The room name to be used when sending server notices. This room name will |
|
108 |
# appear in user clients. |
|
109 |
room_name: "Server Alerts" |
|
163 | 110 |
|
180 | 111 |
# Configuration for NATS JetStream |
112 |
jetstream: |
|
113 |
# A list of NATS Server addresses to connect to. If none are specified, an |
|
114 |
# internal NATS server will be started automatically when running Dendrite in |
|
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
115 |
# monolith mode. |
180 | 116 |
addresses: |
117 |
# - localhost:4222 |
|
163 | 118 |
|
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
119 |
# Disable the validation of TLS certificates of NATS. This is |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
120 |
# not recommended in production since it may allow NATS traffic |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
121 |
# to be sent to an insecure endpoint. |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
122 |
disable_tls_validation: false |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
123 |
|
180 | 124 |
# Persistent directory to store JetStream streams in. This directory should be |
125 |
# preserved across Dendrite restarts. |
|
126 |
storage_path: ./ |
|
127 |
||
128 |
# The prefix to use for stream names for this homeserver - really only useful |
|
129 |
# if you are running more than one Dendrite server on the same NATS deployment. |
|
130 |
topic_prefix: Dendrite |
|
163 | 131 |
|
132 |
# Configuration for Prometheus metric collection. |
|
133 |
metrics: |
|
134 |
enabled: true |
|
135 |
basic_auth: |
|
136 |
username: metrics |
|
137 |
password: metrics |
|
138 |
||
180 | 139 |
# Optional DNS cache. The DNS cache may reduce the load on DNS servers if there |
140 |
# is no local caching resolver available for use. |
|
163 | 141 |
dns_cache: |
142 |
enabled: false |
|
143 |
cache_size: 256 |
|
180 | 144 |
cache_lifetime: "5m" # 5 minutes; https://pkg.go.dev/time@master#ParseDuration |
163 | 145 |
|
146 |
# Configuration for the Appservice API. |
|
147 |
app_service_api: |
|
148 |
# Disable the validation of TLS certificates of appservices. This is |
|
149 |
# not recommended in production since it may allow appservice traffic |
|
180 | 150 |
# to be sent to an insecure endpoint. |
163 | 151 |
disable_tls_validation: false |
152 |
||
227
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
153 |
# Send the access_token query parameter with appservice requests in addition |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
154 |
# to the Authorization header. This can cause hs_tokens to be saved to logs, |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
155 |
# so it should not be enabled unless absolutely necessary. |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
156 |
legacy_auth: false |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
157 |
# Use the legacy unprefixed paths for appservice requests. |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
158 |
legacy_paths: false |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
159 |
|
163 | 160 |
# Appservice configuration files to load into this homeserver. |
180 | 161 |
config_files: |
162 |
# - /path/to/appservice_registration.yaml |
|
163 | 163 |
|
164 |
# Configuration for the Client API. |
|
165 |
client_api: |
|
166 |
# Prevents new users from being able to register on this homeserver, except when |
|
167 |
# using the registration shared secret below. |
|
206
35f2b1e680ed
Added variable for enabling dendrite reg.
Luke Hoersten <luke@hoersten.org>
parents:
205
diff
changeset
|
168 |
registration_disabled: {{dendrite_registration_disabled}} |
163 | 169 |
|
180 | 170 |
# Prevents new guest accounts from being created. Guest registration is also |
171 |
# disabled implicitly by setting 'registration_disabled' above. |
|
172 |
guests_disabled: true |
|
173 |
||
174 |
# If set, allows registration by anyone who knows the shared secret, regardless |
|
175 |
# of whether registration is otherwise disabled. |
|
168 | 176 |
registration_shared_secret: "{{dendrite_registration_secret}}" |
163 | 177 |
|
180 | 178 |
# Whether to require reCAPTCHA for registration. If you have enabled registration |
179 |
# then this is HIGHLY RECOMMENDED to reduce the risk of your homeserver being used |
|
180 |
# for coordinated spam attacks. |
|
181 |
enable_registration_captcha: {{dendrite_recaptcha_enable}} |
|
163 | 182 |
|
183 |
# Settings for ReCAPTCHA. |
|
180 | 184 |
recaptcha_public_key: "{{dendrite_recaptcha_public_key}}" |
185 |
recaptcha_private_key: "{{dendrite_recaptcha_private_key}}" |
|
186 |
recaptcha_bypass_secret: "{{dendrite_recaptcha_bypass_secret}}" |
|
187 |
recaptcha_siteverify_api: "{{dendrite_recaptcha_siteverify_api}}" |
|
163 | 188 |
|
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
189 |
|
163 | 190 |
# TURN server information that this homeserver should send to clients. |
191 |
turn: |
|
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
192 |
turn_user_lifetime: "5m" |
180 | 193 |
turn_uris: |
194 |
# - turn:turn.server.org?transport=udp |
|
195 |
# - turn:turn.server.org?transport=tcp |
|
163 | 196 |
turn_shared_secret: "" |
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
197 |
# If your TURN server requires static credentials, then you will need to enter |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
198 |
# them here instead of supplying a shared secret. Note that these credentials |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
199 |
# will be visible to clients! |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
200 |
# turn_username: "" |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
201 |
# turn_password: "" |
163 | 202 |
|
180 | 203 |
# Settings for rate-limited endpoints. Rate limiting kicks in after the threshold |
204 |
# number of "slots" have been taken by requests from a specific host. Each "slot" |
|
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
205 |
# will be released after the cooloff time in milliseconds. Server administrators |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
206 |
# and appservice users are exempt from rate limiting by default. |
163 | 207 |
rate_limiting: |
208 |
enabled: true |
|
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
209 |
threshold: 20 |
163 | 210 |
cooloff_ms: 500 |
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
211 |
exempt_user_ids: |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
212 |
# - "@user:domain.com" |
163 | 213 |
|
214 |
# Configuration for the Federation API. |
|
215 |
federation_api: |
|
216 |
# How many times we will try to resend a failed transaction to a specific server. The |
|
180 | 217 |
# backoff is 2**x seconds, so 1 = 2 seconds, 2 = 4 seconds, 3 = 8 seconds etc. Once |
218 |
# the max retries are exceeded, Dendrite will no longer try to send transactions to |
|
219 |
# that server until it comes back to life and connects to us again. |
|
163 | 220 |
send_max_retries: 16 |
221 |
||
222 |
# Disable the validation of TLS certificates of remote federated homeservers. Do not |
|
223 |
# enable this option in production as it presents a security risk! |
|
224 |
disable_tls_validation: false |
|
225 |
||
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
226 |
# Disable HTTP keepalives, which also prevents connection reuse. Dendrite will typically |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
227 |
# keep HTTP connections open to remote hosts for 5 minutes as they can be reused much |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
228 |
# more quickly than opening new connections each time. Disabling keepalives will close |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
229 |
# HTTP connections immediately after a successful request but may result in more CPU and |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
230 |
# memory being used on TLS handshakes for each new connection instead. |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
231 |
disable_http_keepalives: false |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
232 |
|
180 | 233 |
# Perspective keyservers to use as a backup when direct key fetches fail. This may |
234 |
# be required to satisfy key requests for servers that are no longer online when |
|
235 |
# joining some rooms. |
|
236 |
key_perspectives: |
|
229 | 237 |
- server_name: envs.net |
238 |
keys: |
|
239 |
- key_id: ed25519:a_zIqy |
|
240 |
public_key: vCUcZpt9hUn0aabfh/9GP/6sZvXcydww8DUstPHdJm0 |
|
180 | 241 |
- server_name: matrix.org |
242 |
keys: |
|
243 |
- key_id: ed25519:auto |
|
244 |
public_key: Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw |
|
245 |
- key_id: ed25519:a_RXGa |
|
246 |
public_key: l8Hft5qXKn1vfHrg3p4+W8gELQVo8N13JkluMfmn2sQ |
|
163 | 247 |
|
180 | 248 |
# This option will control whether Dendrite will prefer to look up keys directly |
249 |
# or whether it should try perspective servers first, using direct fetches as a |
|
250 |
# last resort. |
|
251 |
prefer_direct_fetch: false |
|
163 | 252 |
|
253 |
# Configuration for the Media API. |
|
254 |
media_api: |
|
255 |
# Storage path for uploaded media. May be relative or absolute. |
|
256 |
base_path: ./media_store |
|
257 |
||
258 |
# The maximum allowed file size (in bytes) for media uploads to this homeserver |
|
180 | 259 |
# (0 = unlimited). If using a reverse proxy, ensure it allows requests at least |
260 |
#this large (e.g. the client_max_body_size setting in nginx). |
|
163 | 261 |
max_file_size_bytes: 10485760 |
262 |
||
263 |
# Whether to dynamically generate thumbnails if needed. |
|
264 |
dynamic_thumbnails: false |
|
265 |
||
266 |
# The maximum number of simultaneous thumbnail generators to run. |
|
267 |
max_thumbnail_generators: 10 |
|
268 |
||
269 |
# A list of thumbnail sizes to be generated for media content. |
|
270 |
thumbnail_sizes: |
|
180 | 271 |
- width: 32 |
272 |
height: 32 |
|
273 |
method: crop |
|
274 |
- width: 96 |
|
275 |
height: 96 |
|
276 |
method: crop |
|
277 |
- width: 640 |
|
278 |
height: 480 |
|
279 |
method: scale |
|
163 | 280 |
|
180 | 281 |
# Configuration for enabling experimental MSCs on this homeserver. |
282 |
mscs: |
|
283 |
mscs: |
|
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
284 |
# - msc2836 # (Threading, see https://github.com/matrix-org/matrix-doc/pull/2836) |
163 | 285 |
|
286 |
# Configuration for the Sync API. |
|
287 |
sync_api: |
|
288 |
# This option controls which HTTP header to inspect to find the real remote IP |
|
289 |
# address of the client. This is likely required if Dendrite is running behind |
|
290 |
# a reverse proxy server. |
|
291 |
# real_ip_header: X-Real-IP |
|
292 |
||
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
293 |
# Configuration for the full-text search engine. |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
294 |
search: |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
295 |
# Whether or not search is enabled. |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
296 |
enabled: false |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
297 |
|
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
298 |
# The path where the search index will be created in. |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
299 |
index_path: "./searchindex" |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
300 |
|
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
301 |
# The language most likely to be used on the server - used when indexing, to |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
302 |
# ensure the returned results match expectations. A full list of possible languages |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
303 |
# can be found at https://github.com/blevesearch/bleve/tree/master/analysis/lang |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
304 |
language: "en" |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
305 |
|
163 | 306 |
# Configuration for the User API. |
307 |
user_api: |
|
308 |
# The cost when hashing passwords on registration/login. Default: 10. Min: 4, Max: 31 |
|
309 |
# See https://pkg.go.dev/golang.org/x/crypto/bcrypt for more information. |
|
180 | 310 |
# Setting this lower makes registration/login consume less CPU resources at the cost |
311 |
# of security should the database be compromised. Setting this higher makes registration/login |
|
312 |
# consume more CPU resources but makes it harder to brute force password hashes. This value |
|
313 |
# can be lowered if performing tests or on embedded Dendrite instances (e.g WASM builds). |
|
314 |
bcrypt_cost: 10 |
|
315 |
||
163 | 316 |
# The length of time that a token issued for a relying party from |
317 |
# /_matrix/client/r0/user/{userId}/openid/request_token endpoint |
|
318 |
# is considered to be valid in milliseconds. |
|
319 |
# The default lifetime is 3600000ms (60 minutes). |
|
320 |
# openid_token_lifetime_ms: 3600000 |
|
321 |
||
215
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
322 |
# Users who register on this homeserver will automatically be joined to the rooms listed under "auto_join_rooms" option. |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
323 |
# By default, any room aliases included in this list will be created as a publicly joinable room |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
324 |
# when the first user registers for the homeserver. If the room already exists, |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
325 |
# make certain it is a publicly joinable room, i.e. the join rule of the room must be set to 'public'. |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
326 |
# As Spaces are just rooms under the hood, Space aliases may also be used. |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
327 |
auto_join_rooms: |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
328 |
# - "#main:matrix.org" |
dd52907adff9
Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents:
207
diff
changeset
|
329 |
|
227
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
330 |
# The number of workers to start for the DeviceListUpdater. Defaults to 8. |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
331 |
# This only needs updating if the "InputDeviceListUpdate" stream keeps growing indefinitely. |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
332 |
# worker_count: 8 |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
215
diff
changeset
|
333 |
|
163 | 334 |
# Configuration for Opentracing. |
335 |
# See https://github.com/matrix-org/dendrite/tree/master/docs/tracing for information on |
|
336 |
# how this works and how to set it up. |
|
337 |
tracing: |
|
338 |
enabled: false |
|
339 |
jaeger: |
|
340 |
serviceName: "" |
|
341 |
disabled: false |
|
342 |
rpc_metrics: false |
|
343 |
tags: [] |
|
344 |
sampler: null |
|
345 |
reporter: null |
|
346 |
headers: null |
|
347 |
baggage_restrictions: null |
|
348 |
throttler: null |
|
349 |
||
180 | 350 |
# Logging configuration. The "std" logging type controls the logs being sent to |
351 |
# stdout. The "file" logging type controls logs being written to a log folder on |
|
352 |
# the disk. Supported log levels are "debug", "info", "warn", "error". |
|
163 | 353 |
logging: |
180 | 354 |
- type: std |
207
e16c94c81b53
Updated dendrite logs to error for less verbose.
Luke Hoersten <luke@hoersten.org>
parents:
206
diff
changeset
|
355 |
level: error |
180 | 356 |
- type: file |
207
e16c94c81b53
Updated dendrite logs to error for less verbose.
Luke Hoersten <luke@hoersten.org>
parents:
206
diff
changeset
|
357 |
level: error |
180 | 358 |
params: |
359 |
path: ./logs |