Can't install Community Document Server in kubernetes with self-signed certs

Hello, I have Nextcloud installed in Kubernetes cluster with self-signed certs.

When trying to install Nextcloud I get the error

An error occured during the request. Unable to proceed.
   cURL error 60: SSL certificate problem: EE certificate key too weak (see 
   http://curl.haxx.se/libcurl/c/libcurl-errors.html)

The solution was to disable checking cert for by editing /var/www/html/config/config.php
‘onlyoffice’ => array ( ‘verify_peer_off’ => TRUE, ),

The same error I faced when trying to install Community Document Server. I did the same thing and turned it by adding line to /var/www/html/config/config.php
'documentserver_community' => array ( 'verify_peer_off' => TRUE, ),

But it does not help.

How to solve the problem?

My config.php

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
      0 => '.ru',
      1 => 'onlyoffice.com'
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'pgsql',
  'version' => '18.0.11.2',
  'overwrite.cli.url' => '.ru',
  'dbname' => 'nextcloud_db',
  'dbhost' => '.ru',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => '',
  'installed' => true,
  'onlyoffice' => array ( 'verify_peer_off' => TRUE, ),
  'documentserver_community' => array ( 'verify_peer_off' => TRUE, ),
);

Some information was hidden

I use nextcloud:18 image with my self-signed cets. Cets are located in
CA_DIR=/usr/local/share/ca-certificates/

I’ve never run OO except as a standalone server, and then both needed non-self-signed certs…

But there are people that made it work in a docker environment

Could this help?