[MOD] DB server

This commit is contained in:
Mohammad Awais 2024-04-21 15:08:54 +05:00 committed by GitHub
parent 18b713bc44
commit 60f77f3d9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 6 deletions

View File

@ -1,11 +1,11 @@
Either Use managed db service from DO https://www.digitalocean.com/products/managed-databases-postgresql Either Use managed db service from [DO](https://www.digitalocean.com/products/managed-databases-postgresql)
or Setup a new VPS and install Postgres on it as follows
https://www.cherryservers.com/blog/how-to-install-and-setup-postgresql-server-on-ubuntu-20-04#step-6-setup-postgresql-server
and dont forget to setup following
or Setup a new VPS and install Postgres on your VPS
and dont forget to setup and alowing remote host connections
vim /etc/postgresql/14/main/postgresql.conf vim /etc/postgresql/14/main/postgresql.conf
@ -18,8 +18,10 @@ Now edit the PostgreSQL access policy configuration file.
vim /etc/postgresql/14/main/pg_hba.conf vim /etc/postgresql/14/main/pg_hba.conf
Append a new connection policy (a pattern stands for [CONNECTION_TYPE][DATABASE][USER] [ADDRESS][METHOD]) in the bottom of the file. Append a new connection policy (a pattern stands for [CONNECTION_TYPE][DATABASE][USER] [ADDRESS][METHOD]) in the bottom of the file.
host all all 0.0.0.0/0 md5 host all all 0.0.0.0/0 md5
We are allowing TCP/IP connections (host) to all databases (all) for all users (all) with any IPv4 address (0.0.0.0/0) using an MD5 encrypted password for authentication (md5). We are allowing TCP/IP connections (host) to all databases (all) for all users (all) with any IPv4 address (0.0.0.0/0) using an MD5 encrypted password for authentication (md5).