postgres works

This commit is contained in:
Alex Bezdieniezhnykh
2024-11-14 21:14:26 +02:00
parent 2244edd2ed
commit ace57eaf27
2 changed files with 14 additions and 1 deletions
-1
View File
@@ -1 +0,0 @@
ASPNETCORE_JwtConfig__Secret=sdkfjghbsdfklhjgvbsdkljfhbvasklhfgsdfvh
+14
View File
@@ -0,0 +1,14 @@
# 01 install postgres, login via system acc, and start psql:
sudo apt install -y postgresql
sudo -i -u postgres
psql
# 02 Edit /etc/postgres/{Version}/main/postgresql.conf and set next:
# listen_addresses = '*' # by default it's bound to localhost, * allows connect from all addresses
# port = 4312 # security reasons
# 03 Edit /etc/postgres/{Version}/main/pg_hba.conf and set next to the end of the file:
# host all all all md5
# 04 restart to apply changes
systemctl restart postgresql