From e89fca93ebf41176125f504f53bc79b1f2609212 Mon Sep 17 00:00:00 2001 From: Abhay Kumar <163823435+its-abhaykumar@users.noreply.github.com> Date: Mon, 5 Jan 2026 22:50:32 +0530 Subject: [PATCH] Add SSL options for PostgreSQL configuration Signed-off-by: Abhay Kumar <163823435+its-abhaykumar@users.noreply.github.com> --- 31/apache/entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/31/apache/entrypoint.sh b/31/apache/entrypoint.sh index e3b88f14..1624918d 100755 --- a/31/apache/entrypoint.sh +++ b/31/apache/entrypoint.sh @@ -216,7 +216,13 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP file_env POSTGRES_DB file_env POSTGRES_PASSWORD file_env POSTGRES_USER + if [ -n "$POSTGRES_SSLMODE" ]; then + run_as 'php /var/www/html/occ config:system:set dbdriveroptions 1000 --value="'$POSTGRES_SSLMODE'" --type=string' + fi + if [ -n "$POSTGRES_SSLCA" ]; then + run_as 'php /var/www/html/occ config:system:set dbdriveroptions 1012 --value="'$POSTGRES_SSLCA'" --type=string' + fi if [ -n "${SQLITE_DATABASE+x}" ]; then echo "Installing with SQLite database" # shellcheck disable=SC2016