]> BookStack Code Mirror - bookstack/commitdiff
shorter amazon S3 url 143/head
authorYounes El Biache <redacted>
Sat, 9 Jul 2016 12:33:37 +0000 (14:33 +0200)
committerGitHub <redacted>
Sat, 9 Jul 2016 12:33:37 +0000 (14:33 +0200)
app/Services/ImageService.php

index dd965c90fb449368f92a787d5f9b58d2eedf609d..331a407c3daf2a24d658c0c751b38d6cfd6065b2 100644 (file)
@@ -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
+}