Skip to content

Setting up wiki.js to use Postgresql socket instead of IP for host #7138

Discussion options

You must be logged in to vote

See https://node-postgres.com/features/connecting#unix-domain-sockets for the unix socket path format. However, no guarantee that it will work as other config properties are still defined by default.

You may have more success by using a connection string. In this case, you must use an environment variable "DATABASE_URL" with the value formatted as explained in https://github.com/brianc/node-postgres/tree/master/packages/pg-connection-string#connection-strings . This will bypass whatever is defined in the config.yml.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NGPixel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants