Quantcast
Channel: Trouble Shooting - Mattermost Peer-to-Peer Forum
Viewing all articles
Browse latest Browse all 327

Connect mattermost to Postgresql

$
0
0

@gabx wrote:

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 ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 327

Trending Articles