55 lines
933 B
Markdown
55 lines
933 B
Markdown
---
|
|
VMID: 121
|
|
---
|
|
|
|
PostgreSql v15
|
|
|
|
port 5432
|
|
|
|
[installation wiki](https://wiki.debian.org/PostgreSql)
|
|
|
|
## Users
|
|
|
|
- ejabberd
|
|
- discorse
|
|
- gitea
|
|
- wiki
|
|
- replication
|
|
- xmppsqlkrov (not created)
|
|
- dmzrsflask (not created)
|
|
|
|
|
|
## Config for databases
|
|
|
|
- ejabberddb - `/etc/ejabberd/ejabberd.yml`
|
|
- discorsedb (forum11) `/etc/discorse_docker/containers/web_only.yml` and `-||-/data.yml`
|
|
- giteadb `/etc/gitea/app.ini`
|
|
- wikidb `/root/wiki/config.yml`
|
|
- replication
|
|
|
|
|
|
```sh
|
|
pg_dump -d <database> -f <file>
|
|
psql -U <user> -d <dababase> -f <dump.psql>
|
|
|
|
```
|
|
|
|
## Config file
|
|
|
|
`/etc/postresql/15main/postresql.conf`
|
|
changed listening_address from localhost to *
|
|
|
|
`/etc/postresql/15main/pg_hba.conf`
|
|
host all all all md5
|
|
|
|
add `/etc/ssl/certs/ssl-cert-snakeoil.pem` to `/etc/ssl/` on every service
|
|
|
|
|
|
## SSL
|
|
|
|
For wiki machine certificate pinging is setup
|
|
In config.yml on wiki machine, the certificate path for new sql server should be added
|
|
|
|
|
|
|