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_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:
- I know this command is correct as I tested it with the unix
- from postgresql docs, sslmode is ignored for Unix domain socket communication.
# ./plateform, I have this error:
Failed to ping db err:pq: SSL is not enabled on the server
Why do this arise ?