1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

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

View File

@@ -261,7 +261,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;