Nextcloud cannot connect to S3 objectstore

the url to the contabo.com S3 object store service is wrongly formed:
A part in the log is shown as follows:
"message":"Error executing \"PutObject\" on \"https://nextcloud-data.eu2.contabostorage.com/:443/nextcloud-data/urn%3Aoid%3A58\"; AWS HTTP error: cURL error 6:
The URL has the bucketname as part of hostname and as well as a subdirecory name:
https://nextcloud-data.eu2.contabostorage.com:443/nextcloud-data/urn:oid:58

the array var
'use_path_style' => true or 'use_path_style' => false
in the config.php file has no effect.

Part of config file related to the objectstore is:

$CONFIG = array (
  'objectstore' => 
  array (
    'class' => 'OC\\Files\\ObjectStore\\S3',
    'arguments' => 
    array (
      'bucket' => 'nextcloud-data',
      'key' => '** sensitive data removed **',
      'secret' => '** sensitive data removed **',
      'hostname' => 'eu2.contabostorage.com',
      'use_path_style' => true,
    ),
  ),

In an edit changed config.php to minimum required
nextcloud-27.1.3
10.6.12-MariaDB-0ubuntu0.22.04.1 Ubuntu 22.04
php 8.1
apache2
VPS service by contabo.com

The error is my own mistake.
As preparation of a new install you have to create an storage.config.php file.
I wrongly assumed that part of the hostname was the bucketname

The wrong line was:
'hostname' => 'eu2.contabostorage.com/nextcloud-data',
However this should be without bucketname
'hostname' => 'eu2.contabostorage.com',