Skip to content

NOW MANAGED ON CODEBERG

Added extra s3 config parameters for use s3-like service compatibility

Dan Brown12be7d008696
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' => [