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

Connect to Google Cloud Storage #63

Open
ItamarSmirra opened this issue Jan 22, 2024 · 3 comments
Open

Connect to Google Cloud Storage #63

ItamarSmirra opened this issue Jan 22, 2024 · 3 comments

Comments

@ItamarSmirra
Copy link

ItamarSmirra commented Jan 22, 2024

Hi!
Is it possible to add another env variable for S3_HOSTNAME or something like that?
It is required for connecting the server to other storage host rather then AWS (Google for example);
Thank you!

@jasonwhite
Copy link
Owner

Does AWS_S3_ENDPOINT work? For example:

AWS_S3_ENDPOINT=https://myendpoint.com:8080

@ItamarSmirra
Copy link
Author

ItamarSmirra commented Jan 23, 2024

It does seem to affect the connecting process and not returning the Invalid Credentials error, but now I am getting the following error:
Screenshot_20240123-122052_Chrome.jpg

Any ideas?

@jasonwhite
Copy link
Owner

jasonwhite commented Jan 23, 2024

I did a little searching for that unspecific protocol error detected message and I believe it is because Google is picky about the http2 headers it receives. The AWS S3 library Rudolfs uses (Rusoto) might not be setting the correct http2 headers (like :scheme and :authority). See rusoto/rusoto#1985.

I'm not aware of anyone else successfully using Rudolfs with GCP via the S3 API. It would probably be better to add GCP support as its own backend.

I don't have any time to debug this further or implement GCP support, but I would be happy to shepherd any pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants