Dan Brown

Merge branch 'patch-1' of git://github.com/younes0/BookStack into younes0-patch-1

...@@ -261,7 +261,7 @@ class ImageService ...@@ -261,7 +261,7 @@ class ImageService
261 // Get the standard public s3 url if s3 is set as storage type 261 // Get the standard public s3 url if s3 is set as storage type
262 if ($storageUrl == false && config('filesystems.default') === 's3') { 262 if ($storageUrl == false && config('filesystems.default') === 's3') {
263 $storageDetails = config('filesystems.disks.s3'); 263 $storageDetails = config('filesystems.disks.s3');
264 - $storageUrl = 'https://s3-' . $storageDetails['region'] . '.amazonaws.com/' . $storageDetails['bucket']; 264 + $storageUrl = 'https://' . $storageDetails['bucket'] . '.s3.amazonaws.com';
265 } 265 }
266 266
267 $this->storageUrl = $storageUrl; 267 $this->storageUrl = $storageUrl;
......