dendrite/server/templates/dendrite.yaml.j2
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--
Added task to ensure log2ram is running.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
# This is the Dendrite configuration file.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
#
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
# The configuration is split up into sections - each Dendrite component has a
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
# configuration section, in addition to the "global" section which applies to
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
# all components.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
# The version of the configuration file.
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
     8
version: 2
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
# Global Matrix configuration. This configuration applies to all components.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
global:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
  # The domain name of this homeserver.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
  server_name: {{dendrite_name}}
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
  # The path to the signing private key file, used to sign requests and events.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
  # Note that this is NOT the same private key as used for TLS! To generate a
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
  # signing key, use "./bin/generate-keys --private-key matrix_key.pem".
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
  private_key: matrix_key.pem
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
  # keys will not be used for federation request or event signing, but will be
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
  # provided to any other homeserver that asks when trying to verify old events.
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    24
  old_private_keys:
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    25
    {% if dendrite_old_key %}- private_key: old_matrix_key.pem
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    26
      expired_at: 1626538450
174
431c6d5e5dd4 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 168
diff changeset
    27
{% endif %}
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    28
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    29
  # How long a remote server can cache our server signing key before requesting it
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    30
  # again. Increasing this number will reduce the number of requests made by other
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    31
  # servers for our key but increases the period that a compromised key will be
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    32
  # considered valid by other homeservers.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    33
  key_validity_period: 168h0m0s
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    34
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    35
  # Global database connection pool, for PostgreSQL monolith deployments only. If
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    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
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    38
  # you must configure the "database" block for each component instead.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    39
  database:
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    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
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    42
    max_idle_conns: 5
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    43
    conn_max_lifetime: -1
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    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
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    64
  # The server name to delegate server-server communications to, with optional port
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    65
  # e.g. localhost:443
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    66
  well_known_server_name: ""
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    75
  # Lists of domains that the server will trust as identity servers to verify third
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    76
  # party identifiers such as phone numbers and email addresses.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    77
  trusted_third_party_id_servers:
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    78
    - matrix.org
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    79
    - vector.im
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    80
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    81
  # Disables federation. Dendrite will not be able to communicate with other servers
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    82
  # in the Matrix federation and the federation API will not be exposed.
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    83
  disable_federation: false
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    84
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    85
  # Configures the handling of presence events. Inbound controls whether we receive
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    86
  # presence events from other servers, outbound controls whether we send presence
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    87
  # events for our local users to other servers.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    91
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    92
  # Configures phone-home statistics reporting. These statistics contain the server
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    93
  # name, number of active users and some information on your deployment config.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    94
  # We use this information to understand how Dendrite is being used in the wild.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    95
  report_stats:
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    98
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
    99
  # Server notices allows server admins to send messages to all users on the server.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   100
  server_notices:
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   101
    enabled: false
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   102
    # The local part, display name and avatar URL (as a mxc:// URL) for the user that
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   103
    # will send the server notices. These are visible to all users on the deployment.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   104
    local_part: "_server"
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   105
    display_name: "Server Alerts"
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   106
    avatar_url: ""
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   107
    # The room name to be used when sending server notices. This room name will
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   108
    # appear in user clients.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   109
    room_name: "Server Alerts"
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   110
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   111
  # Configuration for NATS JetStream
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   112
  jetstream:
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   113
    # A list of NATS Server addresses to connect to. If none are specified, an
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   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
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   116
    addresses:
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   117
    # - localhost:4222
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   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
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   124
    # Persistent directory to store JetStream streams in. This directory should be
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   125
    # preserved across Dendrite restarts.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   126
    storage_path: ./
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   127
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   128
    # The prefix to use for stream names for this homeserver - really only useful
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   129
    # if you are running more than one Dendrite server on the same NATS deployment.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   130
    topic_prefix: Dendrite
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   131
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   132
  # Configuration for Prometheus metric collection.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   133
  metrics:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   134
    enabled: true
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   135
    basic_auth:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   136
      username: metrics
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   137
      password: metrics
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   138
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   139
  # Optional DNS cache. The DNS cache may reduce the load on DNS servers if there
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   140
  # is no local caching resolver available for use.
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   141
  dns_cache:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   142
    enabled: false
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   143
    cache_size: 256
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   144
    cache_lifetime: "5m" # 5 minutes; https://pkg.go.dev/time@master#ParseDuration
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   145
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   146
# Configuration for the Appservice API.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   147
app_service_api:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   148
  # Disable the validation of TLS certificates of appservices. This is
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   149
  # not recommended in production since it may allow appservice traffic
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   150
  # to be sent to an insecure endpoint.
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   151
  disable_tls_validation: false
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   160
  # Appservice configuration files to load into this homeserver.
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   161
  config_files:
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   162
  #  - /path/to/appservice_registration.yaml
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   164
# Configuration for the Client API.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   165
client_api:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   166
  # Prevents new users from being able to register on this homeserver, except when
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   169
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   170
  # Prevents new guest accounts from being created. Guest registration is also
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   171
  # disabled implicitly by setting 'registration_disabled' above.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   172
  guests_disabled: true
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   173
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   174
  # If set, allows registration by anyone who knows the shared secret, regardless
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   175
  # of whether registration is otherwise disabled.
168
8e61e4bb714b Minor dendrite tweaks.
Luke Hoersten <luke@hoersten.org>
parents: 163
diff changeset
   176
  registration_shared_secret: "{{dendrite_registration_secret}}"
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   177
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   178
  # Whether to require reCAPTCHA for registration. If you have enabled registration
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   179
  # then this is HIGHLY RECOMMENDED to reduce the risk of your homeserver being used
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   180
  # for coordinated spam attacks.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   181
  enable_registration_captcha: {{dendrite_recaptcha_enable}}
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   182
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   183
  # Settings for ReCAPTCHA.
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   184
  recaptcha_public_key: "{{dendrite_recaptcha_public_key}}"
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   185
  recaptcha_private_key: "{{dendrite_recaptcha_private_key}}"
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   186
  recaptcha_bypass_secret: "{{dendrite_recaptcha_bypass_secret}}"
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   187
  recaptcha_siteverify_api: "{{dendrite_recaptcha_siteverify_api}}"
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   188
215
dd52907adff9 Split dendrite build out of install role.
Luke Hoersten <luke@hoersten.org>
parents: 207
diff changeset
   189
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   190
  # TURN server information that this homeserver should send to clients.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   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
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   193
    turn_uris:
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   194
    #  - turn:turn.server.org?transport=udp
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   195
    #  - turn:turn.server.org?transport=tcp
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   202
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   203
  # Settings for rate-limited endpoints. Rate limiting kicks in after the threshold
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   207
  rate_limiting:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   213
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   214
# Configuration for the Federation API.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   215
federation_api:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   216
  # How many times we will try to resend a failed transaction to a specific server. The
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   217
  # backoff is 2**x seconds, so 1 = 2 seconds, 2 = 4 seconds, 3 = 8 seconds etc. Once
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   218
  # the max retries are exceeded, Dendrite will no longer try to send transactions to
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   219
  # that server until it comes back to life and connects to us again.
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   220
  send_max_retries: 16
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   221
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   222
  # Disable the validation of TLS certificates of remote federated homeservers. Do not
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   223
  # enable this option in production as it presents a security risk!
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   224
  disable_tls_validation: false
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   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
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   233
  # Perspective keyservers to use as a backup when direct key fetches fail. This may
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   234
  # be required to satisfy key requests for servers that are no longer online when
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   235
  # joining some rooms.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   236
  key_perspectives:
229
7e3bf48e516a Dendrite tweaks.
Luke Hoersten <luke@hoersten.org>
parents: 227
diff changeset
   237
    - server_name: envs.net
7e3bf48e516a Dendrite tweaks.
Luke Hoersten <luke@hoersten.org>
parents: 227
diff changeset
   238
      keys:
7e3bf48e516a Dendrite tweaks.
Luke Hoersten <luke@hoersten.org>
parents: 227
diff changeset
   239
        - key_id: ed25519:a_zIqy
7e3bf48e516a Dendrite tweaks.
Luke Hoersten <luke@hoersten.org>
parents: 227
diff changeset
   240
          public_key: vCUcZpt9hUn0aabfh/9GP/6sZvXcydww8DUstPHdJm0
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   241
    - server_name: matrix.org
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   242
      keys:
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   243
        - key_id: ed25519:auto
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   244
          public_key: Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   245
        - key_id: ed25519:a_RXGa
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   246
          public_key: l8Hft5qXKn1vfHrg3p4+W8gELQVo8N13JkluMfmn2sQ
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   247
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   248
  # This option will control whether Dendrite will prefer to look up keys directly
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   249
  # or whether it should try perspective servers first, using direct fetches as a
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   250
  # last resort.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   251
  prefer_direct_fetch: false
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   252
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   253
# Configuration for the Media API.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   254
media_api:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   255
  # Storage path for uploaded media. May be relative or absolute.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   256
  base_path: ./media_store
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   257
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   258
  # The maximum allowed file size (in bytes) for media uploads to this homeserver
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   259
  # (0 = unlimited). If using a reverse proxy, ensure it allows requests at least
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   260
  #this large (e.g. the client_max_body_size setting in nginx).
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   261
  max_file_size_bytes: 10485760
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   262
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   263
  # Whether to dynamically generate thumbnails if needed.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   264
  dynamic_thumbnails: false
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   265
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   266
  # The maximum number of simultaneous thumbnail generators to run.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   267
  max_thumbnail_generators: 10
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   268
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   269
  # A list of thumbnail sizes to be generated for media content.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   270
  thumbnail_sizes:
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   271
    - width: 32
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   272
      height: 32
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   273
      method: crop
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   274
    - width: 96
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   275
      height: 96
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   276
      method: crop
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   277
    - width: 640
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   278
      height: 480
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   279
      method: scale
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   280
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   281
# Configuration for enabling experimental MSCs on this homeserver.
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   282
mscs:
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   285
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   286
# Configuration for the Sync API.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   287
sync_api:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   288
  # This option controls which HTTP header to inspect to find the real remote IP
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   289
  # address of the client. This is likely required if Dendrite is running behind
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   290
  # a reverse proxy server.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   291
  # real_ip_header: X-Real-IP
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   306
# Configuration for the User API.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   307
user_api:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   308
  # The cost when hashing passwords on registration/login. Default: 10. Min: 4, Max: 31
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   309
  # See https://pkg.go.dev/golang.org/x/crypto/bcrypt for more information.
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   310
  # Setting this lower makes registration/login consume less CPU resources at the cost
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   311
  # of security should the database be compromised. Setting this higher makes registration/login
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   312
  # consume more CPU resources but makes it harder to brute force password hashes. This value
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   313
  # can be lowered if performing tests or on embedded Dendrite instances (e.g WASM builds).
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   314
  bcrypt_cost: 10
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   315
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   316
  # The length of time that a token issued for a relying party from
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   317
  # /_matrix/client/r0/user/{userId}/openid/request_token endpoint
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   318
  # is considered to be valid in milliseconds.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   319
  # The default lifetime is 3600000ms (60 minutes).
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   320
  # openid_token_lifetime_ms: 3600000
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   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
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   334
# Configuration for Opentracing.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   335
# See https://github.com/matrix-org/dendrite/tree/master/docs/tracing for information on
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   336
# how this works and how to set it up.
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   337
tracing:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   338
  enabled: false
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   339
  jaeger:
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   340
    serviceName: ""
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   341
    disabled: false
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   342
    rpc_metrics: false
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   343
    tags: []
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   344
    sampler: null
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   345
    reporter: null
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   346
    headers: null
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   347
    baggage_restrictions: null
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   348
    throttler: null
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   349
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   350
# Logging configuration. The "std" logging type controls the logs being sent to
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   351
# stdout. The "file" logging type controls logs being written to a log folder on
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   352
# the disk. Supported log levels are "debug", "info", "warn", "error".
163
40b78af86337 Tons of updates.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   353
logging:
180
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   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
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   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
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   358
    params:
f2f99b9b16ee Updated dendrite config.
Luke Hoersten <luke@hoersten.org>
parents: 174
diff changeset
   359
      path: ./logs