Skip to content

Commit 959fef3

Browse files
committed
Rename DB to matrix_db / matrix_user
Made-with: Cursor
1 parent 8ed8525 commit 959fef3

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

apps/matrix/.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ SYNAPSE_REPORT_STATS=no
88
# PostgreSQL connection for Synapse (uses the shared postgresql service)
99
POSTGRES_HOST=postgresql
1010
POSTGRES_PORT=5432
11-
POSTGRES_DB=synapse
12-
POSTGRES_USER=synapse
11+
POSTGRES_DB=matrix_db
12+
POSTGRES_USER=matrix_user
1313
POSTGRES_PASSWORD=
1414

1515
# A long random secret used to register new users via the API.

apps/matrix/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,19 @@ reference web client — a full-featured Slack/Teams alternative.
2525

2626
### 1. Create the database
2727

28-
Connect to the shared PostgreSQL instance and create the Synapse database.
29-
Synapse requires `LC_COLLATE` and `LC_CTYPE` to be `C`:
28+
Connect to the shared PostgreSQL instance and create the Matrix database.
29+
Synapse requires `LC_COLLATE` and `LC_CTYPE` to be `C`. Note: these
30+
settings cannot be changed after the database is created; if you need to
31+
fix them later you must dump, drop, recreate, and restore.
3032

3133
```sql
32-
CREATE USER synapse WITH PASSWORD 'your-password';
33-
CREATE DATABASE synapse
34+
CREATE USER matrix_user WITH PASSWORD 'your-password';
35+
CREATE DATABASE matrix_db
3436
ENCODING 'UTF8'
3537
LC_COLLATE='C'
3638
LC_CTYPE='C'
3739
TEMPLATE template0
38-
OWNER synapse;
40+
OWNER matrix_user;
3941
```
4042

4143
### 2. Configure environment

apps/matrix/config/homeserver.yaml.default

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ listeners:
2020
database:
2121
name: psycopg2
2222
args:
23-
user: synapse
23+
user: matrix_user
2424
password: "CHANGEME"
25-
database: synapse
25+
database: matrix_db
2626
host: postgresql
2727
port: 5432
2828
cp_min: 5

0 commit comments

Comments
 (0)