From 44746baf0e59600053a0dce13e05d792406c7eeb Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Tue, 29 Jun 2021 15:05:50 +0200 Subject: [PATCH] Support db_type postgres for etherpad --- etherpad/templates/settings.json.j2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etherpad/templates/settings.json.j2 b/etherpad/templates/settings.json.j2 index 1f16796..f383d67 100644 --- a/etherpad/templates/settings.json.j2 +++ b/etherpad/templates/settings.json.j2 @@ -16,10 +16,14 @@ "dbSettings": { "user": "{{item.db_user}}", "host": "localhost", - "port": 3306, "password": "{{item.db_password}}", - "database": "{{item.name}}", + "database": "{{item.db_name}}", + {% if item.db_type == "mysql" %} + "port": 3306, "charset": "utf8mb4" + {% elif item.db_type == "postgres" %} + "port": 5432 + {% endif %} }, "defaultPadText" : "Welcome to Etherpad!\n\nThis pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!\n\nGet involved with Etherpad at https:\/\/etherpad.org\n", -- GitLab