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

[FEATURE] Cloudflare R2 (S3) Support #155

Closed
Permanently opened this issue Sep 19, 2022 · 5 comments
Closed

[FEATURE] Cloudflare R2 (S3) Support #155

Permanently opened this issue Sep 19, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@Permanently
Copy link

Description

This is pretty much a ticket to check whether Cloudflare R2 is supported. Cloudflare says it's somewhat compatible, depending on what's used. Documentation & compatibility can be viewed here.

@Permanently Permanently added the enhancement New feature or request label Sep 19, 2022
@nischay876
Copy link
Contributor

@tycrek
Copy link
Owner

tycrek commented Oct 14, 2022

I looked into this for a bit and tried a bunch of different methods but couldn't get the aws-sdk library to work with it. Perhaps someone else would have better luck. (Edit: and I'm not willing to switch to a new library just for one S3 host. If the demand is there, fork the project (edit: that wasn't supposed to sounds mean lol))

I also looked into the Workers method... yikes. Far more work effort than I feel like most hosts would be willing to put in. At that point you're basically just writing two file upload servers.

So in summary: R2 is unsupported for now. If Cloudflare improves their implementation of S3 in the future, this may change.

@tycrek tycrek closed this as completed Oct 14, 2022
@LeagueRaINi
Copy link

LeagueRaINi commented Dec 10, 2023

Any updates on this? r2 s3 compat seems good enough now, i had to edit getS3url to serve from a different domain than the private s3 endpoint and have that running fine atm

as to why i had to edit the src, i'm pretty new to r2 so i dont know if there is a different way i'm not aware of but it seems like r2 has a private api endpoint for api calls and then u set a different domain for serving (that one cannot interact with the api from my testing) which is why i had to edit getS3url, that domain also doesnt seem to support any of the path styles you are using (eg bucket.domain and domain/bucket) probably because its directly attached to the bucket, its just the domain, not sure how that would be integrated (if u even plan to), thats how i did it rn

LeagueRaINi@e621f4f

@Permanently
Copy link
Author

I've been using Cloudflare R2 with Mastodon, which is mainly S3-oriented. I've had no issues with it whatsoever.

But, it's not my call to say whether it's safe to use or not. That's just my experience.

@tycrek
Copy link
Owner

tycrek commented Dec 11, 2023

I'm more inclined to support it now, though it would be a feature for 0.15.0 (see PR #220)

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

No branches or pull requests

4 participants