From 730cfbae4a41c88c7f4fe4421cb2a919820ab5d4 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Thu, 1 Jul 2021 19:18:24 +0200 Subject: [PATCH] Allow configuring db_port for etherpad DB --- etherpad/templates/settings.json.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etherpad/templates/settings.json.j2 b/etherpad/templates/settings.json.j2 index f383d67..6691077 100644 --- a/etherpad/templates/settings.json.j2 +++ b/etherpad/templates/settings.json.j2 @@ -19,10 +19,10 @@ "password": "{{item.db_password}}", "database": "{{item.db_name}}", {% if item.db_type == "mysql" %} - "port": 3306, + "port": {{item.db_port|default(3306)}}, "charset": "utf8mb4" {% elif item.db_type == "postgres" %} - "port": 5432 + "port": {{item.db_port|default(5432)}} {% endif %} }, -- GitLab