]> BookStack Code Mirror - bookstack/commitdiff
Added extra s3 config parameters for use s3-like service compatibility
authorDan Brown <redacted>
Sun, 20 Jan 2019 15:23:49 +0000 (15:23 +0000)
committerDan Brown <redacted>
Sun, 20 Jan 2019 15:23:49 +0000 (15:23 +0000)
For #1192 and #1195

.env.example.complete
config/filesystems.php

index 3067202b7fab467d88481e6e744593d627a08e98..8851bd26834e75373c4c011928056321a3d8b14c 100644 (file)
@@ -90,6 +90,10 @@ STORAGE_S3_SECRET=your-s3-secret
 STORAGE_S3_BUCKET=s3-bucket-name
 STORAGE_S3_REGION=s3-bucket-region
 
+# S3 endpoint to use for storage calls
+# Only set this if using a non-Amazon s3-compatible service such as Minio
+STORAGE_S3_ENDPOINT=https://my-custom-s3-compatible.service.com:8001
+
 # Storage URL prefix
 # Used as a base for any generated image urls.
 # An s3-format URL will be generated if not set.
index abaf3c6a47b76564c286d23282fa54fb38394f62..13198a5052e83b02ad0cf3f939b89229f48a93a0 100644 (file)
@@ -49,6 +49,8 @@ return [
             'secret' => env('STORAGE_S3_SECRET', 'your-secret'),
             'region' => env('STORAGE_S3_REGION', 'your-region'),
             'bucket' => env('STORAGE_S3_BUCKET', 'your-bucket'),
+            'endpoint' => env('STORAGE_S3_ENDPOINT', null),
+            'use_path_style_endpoint' => env('STORAGE_S3_ENDPOINT', null) !== null,
         ],
 
         'rackspace' => [