Im using S3 as Appwrite Self-Hosted Storage, and now all builds are there. Can i use S3 only for Upload Files Buckets, and keep Builds and Functions locally?
First, you can use S3 for Appwrite by setting _APP_STORAGE_DEVICE as s3 and filling all the S3 fields
_APP_STORAGE_DEVICE=s3
_APP_STORAGE_S3_ACCESS_KEY=
_APP_STORAGE_S3_SECRET=
_APP_STORAGE_S3_REGION=us-east-1
_APP_STORAGE_S3_BUCKET=
Second, this will be in use for:
- Storage / Uploads
- Functions builds
- Functions deploys
The cache (half-way) & config & certificates will remain local
Can i split like this?
- Storage / Uploads - Local
- Functions builds - S3
- Functions deploys - S3
It won't work 😦
You can see here that Appwrite is getting the device for each of those three here using the getDevice function
https://github.com/appwrite/appwrite/blob/master/app/init.php#L976-L986
That function is declared here https://github.com/appwrite/appwrite/blob/master/app/init.php#L988 And you can see that all called to this device will be treated the same.
If you want to avoid this you'll need to customize the init.php file of your Appwrite container changing the logic of getDevice function.
TY .. Close
This can be a possible feature request
[CLOSED] How to use different Storage providers for functions?
Sorry, guys. I know this has already been closed. @Felipe Amaral may I ask why you want to do that?
Hello @hamed! I would like to know if i could separete store: builds and deploys in S3, and upload files (videos, pictures, docs, pdf) localy.
Recommended threads
- 408 Timeout / Curl Error 7 in Executor w...
Hey everyone, I am losing my mind over a routing loop/timeout issue on a fresh self-hosted setup. I have a single Linux VPS (IP: 45.141.37.105) and one domain (...
- functions returning error 401 in local
I updated to 1.9.0, and the functions that used to work fine in 1.8.1 are now giving me a 401 error. I can't seem to find a solution. If anyone is running versi...
- Docker Compose MongoDB Setup
everythings work fine but the mongodb fails on startup everytime. log: ``` Generating random MongoDB keyfile... /bin/bash: line 9: : No such file or directory ...