Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25517

Connect mattermost to Postgresql

$
0
0

I am attempting to connect Mattemost to Postgresql DB via the Unix socket and NOT the tcp one as described in the docs.
1- I modified the pg_hba.conf and pg_ident.conf postgresql files accordingly to allow a local connection to mattermost DB from user mmuser, which is mapped to mattermost Unix user.

pg_hba.conf
local   mattermost          mmuser                      peer       map=mattermap

pg_ident.conf
mattermap      mattermost              mmuser

2- I changed the URI in config.json this way:
postgres://mmuser:XXYYY@/mattermost?connect_timeout=10

NB:
- I know this command is correct as I tested it with the unix psql command.
- from postgresql docs, sslmode is ignored for Unix domain socket communication.

When running # ./plateform, I have this error:
Failed to ping db err:pq: SSL is not enabled on the server

Why do this arise ?


Viewing all articles
Browse latest Browse all 25517

Trending Articles