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

Add cloudflare access authentication to a specific folder. #19

Open
SohamJa1n opened this issue Jul 7, 2023 · 1 comment
Open

Add cloudflare access authentication to a specific folder. #19

SohamJa1n opened this issue Jul 7, 2023 · 1 comment

Comments

@SohamJa1n
Copy link

Say I have the file explorer on storage.example.com and I want that to be public access but then I want a folder on R2 to be behind access in the file explorer. I tried adding a rule with the URL given when navigating to that folder but it didn't work. Any ideas?

@G4brym
Copy link
Owner

G4brym commented Aug 31, 2023

Hey @SohamJa1n i think the best approach here is for you to have 2 different buckets, one for public and another for private use
Then have also 2 different R2 Explorer workers, one for public on assets.example.com and another one for private on storage.example.com, then enable cloudflare access only in the private one
After this in your private R2 Explorer worker you could have configured both buckets for you to be able to upload files into the public R2 Explorer

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