Open stkari opened 6 years ago
Do you need a discussion for this; or could you just send a PR with the changes necessary?
I don‘t need a discussion. I’ll send a PR
@stkari Did you ever create that PR?
Because I just spend 2 hours to find out that there is this hidden endpoint
key that I need to use to set a custom S3 service host.
I think this option really should be in the config file or at least mentioned in the docs.
The default configuration for filesystem S3 driver could be enhanced by adding an specific endpoint.
's3' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION'), 'bucket' => env('AWS_BUCKET'), 'endpoint' => env('AWS_ENDPOINT'), // added 'url' => env('AWS_URL'), ],
Advantage is to support automatically S3 compatible storage system from other providers. There are some S3 compatible object storage systems available outside from AWS. If you do not add this endpoint the aws sdk automatically uses an AWS url.