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

This commit is contained in:
Dan Brown 2016-07-10 10:15:38 +01:00
commit 8b899a9cf0

View File

@ -261,7 +261,7 @@ class ImageService
// Get the standard public s3 url if s3 is set as storage type // Get the standard public s3 url if s3 is set as storage type
if ($storageUrl == false && config('filesystems.default') === 's3') { if ($storageUrl == false && config('filesystems.default') === 's3') {
$storageDetails = config('filesystems.disks.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; $this->storageUrl = $storageUrl;