Question

Rails Active Storage + DO Space + Expiring links?

I am hunting for a method that will allow me to create expiring links to files stored in Spaces. So that either as the app displays a list of files or at the point the user clicks to download a file - a time limited (say 10 minute) link is generated.

I can see the documentation regarding Spaces Quick Links - I’m looking for this capability but automate-able from within Rails.

Any links or pointers of where I should investigate appreciated.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Please ignore. I was having a moment.

Incidentally: config.active_storage.service_urls_expire_in = 1.minute