Skip to content

Commit 1d08e49

Browse files
committed
docs: add SSL verification example for PostgreSQL
Fixes #13838 Signed-off-by: xhon-pelushi <xhon@pelushi.com>
1 parent 79f5a28 commit 1d08e49

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

admin_manual/configuration_database/linux_database_configuration.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,26 @@ this:
292292
"dbhost" => "localhost",
293293
"dbtableprefix" => "oc_",
294294

295+
SSL for PostgreSQL Database
296+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
297+
298+
Enabling SSL is only necessary if your database does not reside on the same server as your Nextcloud instance.
299+
If you do not connect over localhost and need to allow remote connections then you should enable SSL.
300+
This just covers the SSL database configuration on the Nextcloud server. First you need to configure your database server accordingly.
301+
302+
::
303+
304+
'pgsql_ssl' => [
305+
'mode' => 'verify-ca',
306+
'cert' => '/../ssl-cert.pem',
307+
'key' => '/../ssl-key.pem',
308+
'crl' => '',
309+
'rootcert' => '/../ca-cert.pem',
310+
],
311+
312+
Adjust the paths to the pem files for your environment. ``mode`` accepts the same values as PostgreSQL's
313+
``sslmode`` connection parameter (for example ``require``, ``verify-ca`` or ``verify-full``).
314+
295315
.. _db-troubleshooting-label:
296316

297317
Troubleshooting

0 commit comments

Comments
 (0)