added pg conf
This commit is contained in:
@@ -17,6 +17,19 @@ systemctl enable --now postgresql
|
|||||||
su - postgres
|
su - postgres
|
||||||
psql -c "ALTER USER postgres WITH password 'monsupermotdepasse'"
|
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
|
## xsweet
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user