Closed Obeyed closed 1 month ago
Hello @Obeyed good timing, i just pushed a new version of Storage that should simplify the S3 protocol on self-host.
Could you try using the new image: v1.10.1
, without any other config changes the protocol should work.
Previously other setup was necessary. Let me know if it works for you
EDIT:
Additionally, you shouldn't need the additional forwarded header in the kong config
Closing for now, feel free to re-open if you need any more support with the newer image
Improve documentation
Link
https://supabase.com/docs/guides/storage/uploads/s3-uploads
Describe the problem
It is not understandable how to prepare the local / self-hosted environment for parallel S3 uploads.
Describe the improvement
Are there any guides available for using the S3 Protocol when self-hosting?
Additional context
Originally posted in https://github.com/supabase/storage/issues/495#issuecomment-2225945817 and later in https://github.com/supabase/storage/discussions/528
When I follow the steps written in the referenced issue, I get the
SignatureDoesNotMatch
error:Standard and Resumable uploads work.
At one point I was getting the following error:
But that seems to have been my mistake with restarting the containers properly, because I'm not seeing this anymore. Now I get the
SignatureDoesNotMatch
error.Any pointers on what I could be doing wrong?
Is there anything more I can share that could help?
Storage config
These are the environment variables for the storage container:
Kong config
My kong config for the storage-v1 path is as follows:
Notice the
/storage/v1
in"Forwarded: host=$(headers.host)/storage/v1;proto=http"
.Python Boto3
Example of how I'm doing the upload from a client application with Python and boto3. Couldn't find anything about using Python in the docs, so lots of guessing and trying.