2017-07-05 12:10:28 +00:00
|
|
|
# The config file format version
|
|
|
|
# This is used by dendrite to tell if it understands the config format.
|
|
|
|
# This will change if the structure of the config file changes or if the meaning
|
|
|
|
# of an existing config key changes.
|
|
|
|
version: 0
|
|
|
|
|
|
|
|
# The matrix specific config
|
|
|
|
matrix:
|
|
|
|
# The name of the server. This is usually the domain name, e.g 'matrix.org', 'localhost'.
|
|
|
|
server_name: "example.com"
|
|
|
|
# The path to the PEM formatted matrix private key.
|
|
|
|
private_key: "/etc/dendrite/matrix_key.pem"
|
|
|
|
# The x509 certificates used by the federation listeners for this server
|
2017-08-21 16:34:05 +00:00
|
|
|
federation_certificates: ["/etc/dendrite/server.pem"]
|
2017-09-11 18:18:19 +00:00
|
|
|
# The list of identity servers trusted to verify third party identifiers by this server.
|
|
|
|
# Defaults to no trusted servers.
|
|
|
|
trusted_third_party_id_servers:
|
|
|
|
- vector.im
|
|
|
|
- matrix.org
|
|
|
|
- riot.im
|
2017-07-05 12:10:28 +00:00
|
|
|
|
|
|
|
# The media repository config
|
|
|
|
media:
|
|
|
|
# The base path to where the media files will be stored. May be relative or absolute.
|
|
|
|
base_path: /var/dendrite/media
|
|
|
|
|
|
|
|
# The maximum file size in bytes that is allowed to be stored on this server.
|
|
|
|
# Note: if max_file_size_bytes is set to 0, the size is unlimited.
|
|
|
|
# Note: if max_file_size_bytes is not set, it will default to 10485760 (10MB)
|
|
|
|
max_file_size_bytes: 10485760
|
|
|
|
|
|
|
|
# Whether to dynamically generate thumbnails on-the-fly if the requested resolution is not already generated
|
|
|
|
# NOTE: This is a possible denial-of-service attack vector - use at your own risk
|
|
|
|
dynamic_thumbnails: false
|
|
|
|
|
|
|
|
# A list of thumbnail sizes to be pre-generated for downloaded remote / uploaded content
|
|
|
|
# method is one of crop or scale. If omitted, it will default to scale.
|
|
|
|
# crop scales to fill the requested dimensions and crops the excess.
|
|
|
|
# scale scales to fit the requested dimensions and one dimension may be smaller than requested.
|
|
|
|
thumbnail_sizes:
|
|
|
|
- width: 32
|
|
|
|
height: 32
|
|
|
|
method: crop
|
|
|
|
- width: 96
|
|
|
|
height: 96
|
|
|
|
method: crop
|
|
|
|
- width: 320
|
|
|
|
height: 240
|
|
|
|
method: scale
|
|
|
|
- width: 640
|
|
|
|
height: 480
|
|
|
|
method: scale
|
|
|
|
- width: 800
|
|
|
|
height: 600
|
|
|
|
method: scale
|
|
|
|
|
|
|
|
# The config for communicating with kafka
|
|
|
|
kafka:
|
|
|
|
# Where the kafka servers are running.
|
|
|
|
addresses: ["localhost:9092"]
|
2017-08-16 12:36:41 +00:00
|
|
|
# Whether to use naffka instead of kafka.
|
|
|
|
# Naffka can only be used when running dendrite as a single monolithic server.
|
|
|
|
# Kafka can be used both with a monolithic server and when running the
|
|
|
|
# components as separate servers.
|
|
|
|
use_naffka: false
|
2017-07-05 12:10:28 +00:00
|
|
|
# The names of the kafka topics to use.
|
|
|
|
topics:
|
|
|
|
output_room_event: roomserverOutput
|
2017-08-02 15:21:35 +00:00
|
|
|
output_client_data: clientapiOutput
|
2017-07-11 13:14:06 +00:00
|
|
|
user_updates: userUpdates
|
2017-07-05 12:10:28 +00:00
|
|
|
|
|
|
|
# The postgres connection configs for connecting to the databases e.g a postgres:// URI
|
|
|
|
database:
|
|
|
|
account: "postgres://dendrite:itsasecret@localhost/dendrite_account?sslmode=disable"
|
|
|
|
device: "postgres://dendrite:itsasecret@localhost/dendrite_device?sslmode=disable"
|
|
|
|
media_api: "postgres://dendrite:itsasecret@localhost/dendrite_mediaapi?sslmode=disable"
|
|
|
|
sync_api: "postgres://dendrite:itsasecret@localhost/dendrite_syncapi?sslmode=disable"
|
|
|
|
room_server: "postgres://dendrite:itsasecret@localhost/dendrite_roomserver?sslmode=disable"
|
|
|
|
server_key: "postgres://dendrite:itsasecret@localhost/dendrite_serverkey?sslmode=disable"
|
2017-07-12 13:48:12 +00:00
|
|
|
federation_sender: "postgres://dendrite:itsasecret@localhost/dendrite_federationsender?sslmode=disable"
|
2017-08-22 10:12:51 +00:00
|
|
|
public_rooms_api: "postgres://dendrite:itsasecret@localhost/dendrite_publicroomsapi?sslmode=disable"
|
2017-07-05 12:10:28 +00:00
|
|
|
|
|
|
|
# The TCP host:port pairs to bind the internal HTTP APIs to.
|
|
|
|
# These shouldn't be exposed to the public internet.
|
2017-08-16 12:36:41 +00:00
|
|
|
# These aren't needed when running dendrite as a monolithic server.
|
2017-07-05 12:10:28 +00:00
|
|
|
listen:
|
|
|
|
room_server: "localhost:7770"
|
|
|
|
client_api: "localhost:7771"
|
|
|
|
federation_api: "localhost:7772"
|
|
|
|
sync_api: "localhost:7773"
|
|
|
|
media_api: "localhost:7774"
|
2017-08-22 10:12:51 +00:00
|
|
|
public_rooms_api: "localhost:7775"
|
2017-09-25 10:20:36 +00:00
|
|
|
federation_sender: "localhost:7776"
|