From 7279674de4bad84b9a1a3b319b5e8f69e56f241d Mon Sep 17 00:00:00 2001 From: Thomas Maurice Date: Wed, 6 Dec 2023 08:57:45 +0100 Subject: [PATCH] fix db instructions --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4fdf495..b1465d0 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,16 @@ Note that you won't be using the `dnf` instruction here since DNF is the package If you are feeling adventurous you can install postgresql using [docker](https://github.com/levonet/ansible-docker-postgres). -Either way, you need to install this on youd DB machine, which should be the one with the least amount of RAM. +Either way, you need to install this on your DB machine, which should be the one with the least amount of RAM. + +Go check the configuration of `/etc/postgresql/13/main/pg_hba.conf` and `/etc/postgresql/13/main/postgresql.conf` to make sure you can connect from `0.0.0.0`. + +On the `pg_hba.conf` file add a line like that at the end: +``` +host all all md5 +``` + +Also change the `listen` instruction to `*`. ## Install Nginx