From e58b74c22402f52e9b757aee3a36ef2024369a9a Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 27 Apr 2021 22:29:29 +0200 Subject: [PATCH] added pg conf --- readme.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/readme.md b/readme.md index f4c850e..647a629 100644 --- a/readme.md +++ b/readme.md @@ -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