Add database.naffka to example config (#350)

* Add database.naffka to example config

* Update dendrite-config.yaml

* Add naffka creation to INSTALL
This commit is contained in:
Erik Johnston 2017-11-22 15:46:49 +00:00 committed by GitHub
parent 0d72e34acf
commit 9476a266bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -64,7 +64,7 @@ Dendrite requires a postgres database engine, version 9.5 or later.
``` ```
* Create databases: * Create databases:
```bash ```bash
for i in account device mediaapi syncapi roomserver serverkey federationsender publicroomsapi; do for i in account device mediaapi syncapi roomserver serverkey federationsender publicroomsapi naffka; do
sudo -u postgres createdb -O dendrite dendrite_$i sudo -u postgres createdb -O dendrite dendrite_$i
done done
``` ```

View file

@ -80,6 +80,7 @@ kafka:
# Naffka can only be used when running dendrite as a single monolithic server. # 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 # Kafka can be used both with a monolithic server and when running the
# components as separate servers. # components as separate servers.
# If enabled database.naffka must also be specified.
use_naffka: false use_naffka: false
# The names of the kafka topics to use. # The names of the kafka topics to use.
topics: topics:
@ -97,6 +98,8 @@ database:
server_key: "postgres://dendrite:itsasecret@localhost/dendrite_serverkey?sslmode=disable" server_key: "postgres://dendrite:itsasecret@localhost/dendrite_serverkey?sslmode=disable"
federation_sender: "postgres://dendrite:itsasecret@localhost/dendrite_federationsender?sslmode=disable" federation_sender: "postgres://dendrite:itsasecret@localhost/dendrite_federationsender?sslmode=disable"
public_rooms_api: "postgres://dendrite:itsasecret@localhost/dendrite_publicroomsapi?sslmode=disable" public_rooms_api: "postgres://dendrite:itsasecret@localhost/dendrite_publicroomsapi?sslmode=disable"
# If using naffka you need to specify a naffka database
# naffka: "postgres://dendrite:itsasecret@localhost/dendrite_naffka?sslmode=disable"
# The TCP host:port pairs to bind the internal HTTP APIs to. # The TCP host:port pairs to bind the internal HTTP APIs to.
# These shouldn't be exposed to the public internet. # These shouldn't be exposed to the public internet.