fix pg setup
This commit is contained in:
parent
538f433e39
commit
f8a5892d40
1 changed files with 3 additions and 3 deletions
|
@ -120,14 +120,14 @@ If you are feeling adventurous you can install postgresql using [docker](https:/
|
||||||
|
|
||||||
Either way, you need to install this on your 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`.
|
Go check the configuration of `/etc/postgresql/15/main/pg_hba.conf` and `/etc/postgresql/15/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:
|
On the `pg_hba.conf` file add a line like that at the end:
|
||||||
```
|
```
|
||||||
host all all <the netmask you want to add> md5
|
host all all <the netmask you want to add> scram-sha-256
|
||||||
```
|
```
|
||||||
|
|
||||||
Also change the `listen` instruction to `*`.
|
Also change the `listen` instruction to `*` in `postgresql.conf`.
|
||||||
|
|
||||||
## Install Nginx
|
## Install Nginx
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue