From 0cd953a6f5152d3ec714d7c162196fce70a5f7f4 Mon Sep 17 00:00:00 2001 From: biva Date: Tue, 21 Jun 2022 14:54:51 +0200 Subject: [PATCH] config.json for PostgreSQL Inspired from the original MySQL config.json and from Mattermost documentation https://docs.mattermost.com/install/install-debian.html#install-postgresql-database-server --- conf/config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/config.json b/conf/config.json index 41c51fd..cd11b92 100644 --- a/conf/config.json +++ b/conf/config.json @@ -130,8 +130,8 @@ "IosMinVersion": "" }, "SqlSettings": { - "DriverName": "mysql", - "DataSource": "__DB_USER__:__DB_PWD__@tcp(localhost:3306)/__DB_NAME__?charset=utf8mb4,utf8", + "DriverName": "postgres", + "DataSource": "postgres://__DB_USER__:__DB_PWD__@tcp(localhost:5432)/__DB_NAME__?sslmode=disable&connect_timeout=10", "DataSourceReplicas": [], "DataSourceSearchReplicas": [], "MaxIdleConns": 20,