added pg conf

This commit is contained in:
2021-04-27 22:29:29 +02:00
parent 1c53b6215f
commit e58b74c224
+13
View File
@@ -17,6 +17,19 @@ systemctl enable --now postgresql
su - postgres
psql -c "ALTER USER postgres WITH password 'monsupermotdepasse'"
```
then edit ```/etc/postgresql/11/main/postgresql.conf```
```
listen_addresses = '*'
```
and /etc/postgresql/11/main/pg_hba.conf
```
# TYPE DATABASE USER ADDRESS METHOD
host all all 127.0.0.1/32 trust
host editoriadb editoria 172.18.0.1/16 trust
host editoriadb editoria 172.18.0.2/16 trust
```
## xsweet