0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-21 17:36:59 -05:00

Add host specific rules for pg_hba.conf section

This commit is contained in:
Peter Keenan 2023-07-26 15:27:00 +01:00 committed by Caesar Schinas
parent d87ee56faa
commit d6b2987330
No known key found for this signature in database
GPG key ID: AE9108461BEA5ACF

View file

@ -121,12 +121,14 @@ Note: All steps below requires that the database engine of your choice is instal
Replace database name as appropriate.
6. Allow the database user to access the database created above by adding the following authentication rule to `pg_hba.conf`.
6. Allow the database user to access the database created above by adding the following authentication rules to `pg_hba.conf`.
For local database:
```ini
local forgejodb forgejo scram-sha-256
local forgejodb forgejo scram-sha-256
host forgejodb forgejo 127.0.0.1/32 scram-sha-256
host forgejodb forgejo ::1/128 scram-sha-256
```
For remote database:
@ -146,7 +148,7 @@ Note: All steps below requires that the database engine of your choice is instal
For local database:
```
psql -U forgejo -d forgejodb
psql -U forgejo -d forgejodb -h localhost
```
For remote database: