Unverified Commit 6665b6ed authored by Robert O'Rourke's avatar Robert O'Rourke Committed by GitHub
Browse files

Merge pull request #302 from humanmade/update/endpoint-docs

Improvement to the custom endpoint docs
parents b948479d 14f644d2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -186,9 +186,12 @@ Custom Endpoints
=======

Depending on your requirements you may wish to use an alternative S3 compatible object storage system such as Minio, Ceph,
Digital Ocean Spaces, Scaleway and others. You can configure the endpoint using the following code:
Digital Ocean Spaces, Scaleway and others.

You can configure the endpoint by adding the following code to a file in the `wp-content/mu-plugins/` directory, for example `wp-content/mu-plugins/s3-endpoint.php`:

```php
<?php
// Filter S3 Uploads params.
add_filter( 's3_uploads_s3_client_params', function ( $params ) {
	$params['endpoint'] = 'https://your.endpoint.com';