From: Younes El Biache Date: Sat, 9 Jul 2016 12:33:37 +0000 (+0200) Subject: shorter amazon S3 url X-Git-Tag: v0.12.0~1^2~21^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/refs/pull/143/head?ds=inline shorter amazon S3 url --- diff --git a/app/Services/ImageService.php b/app/Services/ImageService.php index dd965c90f..331a407c3 100644 --- a/app/Services/ImageService.php +++ b/app/Services/ImageService.php @@ -259,7 +259,7 @@ class ImageService // Get the standard public s3 url if s3 is set as storage type if ($storageUrl == false && config('filesystems.default') === 's3') { $storageDetails = config('filesystems.disks.s3'); - $storageUrl = 'https://s3-' . $storageDetails['region'] . '.amazonaws.com/' . $storageDetails['bucket']; + $storageUrl = 'https://' . $storageDetails['bucket'] . '.s3.amazonaws.com'; } $this->storageUrl = $storageUrl; @@ -269,4 +269,4 @@ class ImageService } -} \ No newline at end of file +}