S3 endpoint compatibility #156
Unanswered
CEikermann
asked this question in
Ideas
Replies: 1 comment
-
Hi Ceikermann, I've converted this issue to a discussion because I believe it is a better format. The S3 Gateway was intentionally designed for the use case of using S3 like a backend filesystem allowing someone to still use NGINX as a webserver albeit backed by S3. What you are asking about is a separate use case. I do think much of the plumbing to do your use case is in place, but it would require many changes and forked logic. Honestly, I believe that such a thing would be better as a separate project. If you wanted to create a project, I would be happy to support it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Right now you can not use nginx-s3-gateway as a s3 endpoint compatible proxy.
It is not possible to use any S3 library with overwriting the s3 endpoint towards the nginx-s3-gateway.
Background usecase: we want to cache files locally when using the AWS SDK
Describe the solution you'd like
It would be great if the nginx could can be adjust to support this use case. See more details in the additional context
Additional context
1.) Run the nginx-s3-gateway on localhost:8000
2.) aws --endpoint-url http://localhost:8000 --debug s3 cp s3://any-bucket-name/any-file-path.txt .
nginx-s3-gateway is not support this case, as its calls the following url: http://localhost:8000/any-bucket-name/any-file-path.txt
This way also the AWS SDK is emitting S3 request when using s3 endpoint url overwrite
It would be great, if we can support this case, maybe but adding a location part into the nginx conf which listens on /{S3_BUCKET_NAME} - this should solve the problem already
Looking forward to your reply on this
Beta Was this translation helpful? Give feedback.
All reactions