appwrite
appwrite copied to clipboard
🚀 Feature: Add Minio support (extend s3)
🔖 Feature description
Add a host option to the s3 adapter
🎤 Pitch
There is no way of changing the s3 host provider, so minio is currently unsupported
👀 Have you spent some time to check if this issue has been raised before?
- [X] I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- [X] I have read the Code of Conduct
Related utopia-php/storage issue: https://github.com/utopia-php/storage/issues/37
We're in the process of reviewing a community PR to add a generic S3 adapter.
FYI, related S3 compatible adapter work: https://github.com/utopia-php/storage/issues/28
Is this feature available in Appwrite now? Asking this since the related repo's PR for S3 compatible adapters has been merged.
how to configure the s3 URL?
@itexpertnow I don't think it can be configured for Appwrite as of now.
Hi guys!
I managed to get it working after making some adjustments. I am running everything locally in development mode.
I will try to send some PRs during the week to help you us.
But basically, I will take this opportunity to describe what I had to do. It was as follows:
-
📌 The latest version of the utopia-php/storage project is not the one with the most up-to-date code. ( requested here https://github.com/utopia-php/storage/issues/37#issuecomment-2269732620)
-
📌 Even if you use the latest version of the project, there is still a need for validation in two scenarios:
My Scenario 1: When the host is something like: http://minio-server:9001/
In this scenario, the project is not validating whether the host value already has the protocol or not, and it is always inserting the HTTPS protocol.
Additionally, the same code is always forcing the existence of a "bucket" value, always leaving the URL with a subdomain, which causes a series of inconveniences.
[!TIP] Updated comment: created PR for item 2 https://github.com/utopia-php/storage/pull/111
- 📌 Even after correcting these items, it is necessary to generate the most updated version of this utopia-php/storage package and make the appwrite project use it.
Waiting resolution of item 1 and 2
- 📌 After appwrite uses the updated package, it is still necessary for the ./appwrite/app file to use (from an environment variable) the URL of the Minio server host
Part of this resolution is in PR https://github.com/appwrite/appwrite/pull/7172 And then we need to make a new update to add the protocol variables and also pass them in the construction of new S3