diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-15 09:12:42 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-15 09:13:08 +0200 |
commit | 9d392891beb545a2c8177edb7b420bb3c155d84f (patch) | |
tree | 98890015b6c396cfd8fd92e14e1704d996e11544 /lib | |
parent | 839f27b50185847056f23d1ab2b081a70e142f7f (diff) | |
download | nextcloud-server-9d392891beb545a2c8177edb7b420bb3c155d84f.tar.gz nextcloud-server-9d392891beb545a2c8177edb7b420bb3c155d84f.zip |
Disable Client-Side Monitoring on AWS storage
The S3 client enables this by default and then tries to read
`.aws/config`. This causes `open_basedir` restriction related error for
some setups. So this patch disables the CSM because it's most likely
unused anyway.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/ObjectStore/S3ConnectionTrait.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index 0208df1908a..16a48ee82a0 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -47,7 +47,7 @@ trait S3ConnectionTrait { /** @var int */ protected $timeout; - + /** @var int */ protected $uploadPartSize; @@ -99,7 +99,8 @@ trait S3ConnectionTrait { 'endpoint' => $base_url, 'region' => $this->params['region'], 'use_path_style_endpoint' => isset($this->params['use_path_style']) ? $this->params['use_path_style'] : false, - 'signature_provider' => \Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider()) + 'signature_provider' => \Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider()), + 'csm' => false, ]; if (isset($this->params['proxy'])) { $options['request.options'] = ['proxy' => $this->params['proxy']]; |