By Cyrus Cuenca
I’ve found this feature from Azure:
https://docs.microsoft.com/en-us/azure/cdn/cdn-token-auth
How could I do something similar with DigitalOcean Spaces?
I’ve built out a slideshow SPA that I would like to integrate a scalable storage solution with. The slideshows contain images that must be served quickly, and cannot be served to other users.
I’ve seen this kind of system implemented by large companies like Google, but I haven’t found much info on this kind of system online.
I currently require a bearer token in my API, check the token, and the server the image from the server’s file system. I’d like to get the quick delivery of a CDN, but I also need good security for my users.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I asked this question a while ago and I think this won’t be offered without a price tier change. One way you could do it. Is setup api instances in all major locations. When a request comes in, check location of where its coming from and redirect it to one of your api instances thats closest. Then handle authenticating it and serving the file.
I know its not the best idea. But if you want to use Spaces its an option.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.