Skip to content

Add dynamic config for Postgres SSL mode #2477

@nfk

Description

@nfk

Latest release nextcloud:30.0.16-fpm (see nextcloud/server#55170) brings postgresql SSL support but the docker image does not provide dynamic config.

Example: 30/fpm/config/pgsql_ssl.config.php

<?php
if (getenv('POSTGRES_SSL_MODE')) {
  $CONFIG = array (
    'pgsql_ssl' => array(
      'mode' => getenv('POSTGRES_SSL_MODE'),  // see https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLMODE
      'rootcert' => getenv('POSTGRES_SSL_ROOTCERT') ?: null,
      ...
    ),
  );
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions