AWS S3 primay Storage

Hi,

I use this config:

‘objectstore’ => array(
‘class’ => ‘OC\Files\ObjectStore\S3’,
‘arguments’ => array(
‘bucket’ => ‘xxxxxx.eu-central-1.amazonaws.com’, //add your bucket name here
’key’ => ‘xxxxxxxx’, //add S3 bucket user/admin key here
’secret’ => ‘xx’, //add S3 bucket user/admin secret phrase here
’use_ssl’ => true,
‘use_path_style’=>true, //Essential to get S3 working
)

But get this error:
Could not create object urn:oid:151 for appdata_ocy8ad2zb78b/js/core/merged-template-prepend.js.gzip: {“Exception”:“Aws\S3\Exception\NoSuchBucketException”,“Message”:"The specified bucket does not exist

When i leave the eu-central-1.aamazonaws.com url i got this error:
Could not create object urn:oid:157 for appdata_ocy8ad2zb78b/js/core/merged-template-prepend.js.gzip: {“Exception”:“Aws\S3\Exception\PermanentRedirectException”,“Message”:“The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint: \amazonaws dot com”.",“Code”:0,“Trace”:"#0