Skip to content

How to use password file for Postgresql authentication #2825

Answered by lonvia
nu-roger asked this question in Q&A
Discussion options

You must be logged in to vote

After updating the NOMINATIM_DATABASE_DSN you need to run nominatim refresh --website. Have you done that? If yes, inspect website/status.php to confirm that there is really the correct DSN in there.

Also be aware that you have to create the .pgpass file for the user who is making the connection to the database. If you are running Nominatim through a server, this would be usually 'www-data'. You might have to work with a PGPASSFILE environment variable. But we are getting now deep into the realms of system administration which goes a bit too far for this discussion forum.

Side note: the API should usually not be connecting as the DB user nominatim but as the read-only website user. If you…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by nu-roger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants