Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minio S3 Compabilty #476

Closed
martadinata666 opened this issue May 26, 2022 · 2 comments · Fixed by #486
Closed

Minio S3 Compabilty #476

martadinata666 opened this issue May 26, 2022 · 2 comments · Fixed by #486
Labels
Enhancement Any requests for improvements or new features

Comments

@martadinata666
Copy link

Is your feature request related to a problem? Please describe.
not everyone will or want to pay for s3, self hosted minio become alternative

Describe the solution you'd like
Add usabilty with self hosted S3 with minio

Describe alternatives you've considered
I already modified some code to config/filesystem.php to enable upload to local s3 and it work fine, need further test.

'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'),
            'bucket_endpoint' => false,
            'use_path_style_endpoint' => true,
            'scheme' => 'http',
        ],

Additional context
Basically this enable old style aws https://url/bucketname, instead new style aws url https://bucketname.s3.amazon... and disable SSL https protocol.

@martadinata666 martadinata666 added the Enhancement Any requests for improvements or new features label May 26, 2022
@Kovah Kovah reopened this Jun 10, 2022
@martadinata666
Copy link
Author

martadinata666 commented Jun 10, 2022

The reason i closed this, is somehow the default s3 setup works fine, maybe the error i used to get because wrong minio setup. But it better to have additional option that nothing at all.

I hope someone else can replicate and confirm it that it already worked fine.

My ENV

AWS_ACCESS_KEY_ID=myaccess
AWS_SECRET_ACCESS_KEY=mysecretkey
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=linkace
AWS_ENDPOINT=http://192.168.0.2:9000

And the config/filesystem.php is default.

 's3' => [
            'driver' => 's3',
            'key' => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_BUCKET'),
            'url' => env('AWS_URL'),
            'endpoint' => env('AWS_ENDPOINT'),
        ],

@Kovah
Copy link
Owner

Kovah commented Jun 10, 2022

Good to know it works without changes. I just added some more configuration options in case anyone needs them.

@Kovah Kovah linked a pull request Jun 10, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Any requests for improvements or new features
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants