PostgreSQL Remote Server Connectivity
Enable remote server access to the PostgreSQL database used by JFrog Artifactory by configuring pg_hba.conf and reloading the PostgreSQL service.
The following example shows how to enable PostgreSQL connectivity from remote servers. Consult your security team for your organization's best practices.
-
Add the following line to
<postgres_mount>/data/pg_hba.conf:host <artifactory_db_name> <artifactory_user> <cidr> md5where
artifactory_db_nameis the name of the artifactory database you created.artifactory_useris the user that artifactory uses to interact with the database.cidris the host or network segment that is granted access to the database.For example:
host artifactory artifactory 123.456.78.90/32 md5 -
Add the following line to
<postgres_mount>/data/postgresql.conf`listen_addresses='*'``
Note
You can also use a specific IP address for the PostgreSQL server to listen.
- Restart PostgreSQL.
Updated 11 days ago
