From 12be7d0086961ddea12da69252359ea6671db7cf Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sun, 20 Jan 2019 15:23:49 +0000 Subject: [PATCH] Added extra s3 config parameters for use s3-like service compatibility For #1192 and #1195 --- .env.example.complete | 4 ++++ config/filesystems.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.env.example.complete b/.env.example.complete index 3067202b7..8851bd268 100644 --- a/.env.example.complete +++ b/.env.example.complete @@ -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. diff --git a/config/filesystems.php b/config/filesystems.php index abaf3c6a4..13198a505 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -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' => [