From f52b97c06525ac671585c5e21a33b5bf9aaf0a64 Mon Sep 17 00:00:00 2001 From: Schreiner Pascal Date: Sun, 8 Sep 2024 11:39:45 +0200 Subject: [PATCH] set hotwo for prostgress --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c21a4d2..4a42a87 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Postgress by default not in use! Default DB is SQLite. 3. (optional) Set db in config: `nano ${BASEDIR:-.}/files/synapse/homeserver.yaml` -4. Edit element config: `nano files/element-config.json` +4. Edit element config: `nano ${BASEDIR:-.}/files/element-config.json` 1. set "default_server_name" to your domain for Synapse - must be manually add in first indention from json, was removed from newer versions (?) ```json @@ -58,6 +58,28 @@ source .env docker exec -it matrix_app_1 register_new_matrix_user -u $USERNAME -p $USERPASS -a -c /data/homeserver.yaml $DOMAIN ``` +### replace sqlite3 with postgress +1. Edit `nano ${BASEDIR:-.}/files/synapse/homeserver.yaml` +2. Remove: +```yaml +database: + name: sqlite3 + args: + database: /data/homeserver.db +``` +3. Add: +```yaml +database: + name: psycopg2 + args: + user: synapse + password: STRONGPASSWORD + database: synapse + host: synapsedb + cp_min: 5 + cp_max: 10 +``` + ### caddy config #### synapse