set hotwo for prostgress
This commit is contained in:
24
README.md
24
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
|
||||
|
||||
Reference in New Issue
Block a user