vaersaagod / dospaces

DigitalOcean Spaces integration for Craft CMS
MIT License
35 stars 8 forks source link

Support for controlling public/private visibility #3

Closed ryanfoote closed 3 years ago

ryanfoote commented 5 years ago

Hi! Is there any planned support for controlling the visibility of files on a per-volume basis?

qrazi commented 4 years ago

I just dug into it a bit, and it seems that the Public URL-setting of a Volume controls the visibility of assets in that volume.

So,

image

Check:

I haven't actually verified this yet, but please report back if you do! :)

qrazi commented 4 years ago

I just verified this. I think the docs could be updated with this. I'll try to make time for a PR.

Set the volume to not have public URLs. Upload some files. Check them out in the Spaces environment. See their visibility is "private". Copy/paste the "origin" and "edge" (if CDN enabled) URLs and try them. You will see an access denied message.