Help with Digital Ocean Spaces Object Storage #95
MarkoTechno
started this conversation in
General
Replies: 1 comment 3 replies
-
Hi @MarkoTechno 👋, Thanks for trying out Hi.Events. I hadn't used DigitalOcean Spaces before, but after some debugging I noticed there is indeed a missing setting, which has now been added. You can click "Force rebuild & deploy" to pull down the latest changes. I haven't been able to get DigitalOcean Spaces working with their CDN. However, the following settings should work using their Origin Endpoint instead of the CDN endpoint. The CDN returns an SSL error for me, so I believe the issue lies with DigitalOcean and not the app.
Also, the private bucket isn't in use yet, so you can ignore that for now. Hope this helps. Cheers, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm grateful that this project exists! I have been working to get Hi.Events running in production on Digital Ocean, and having had little experience with droplets, spaces, etc., it's been a learning curve- I've mostly got it working so first I'll share what I've done in case it helps others, and then I have questions.
Here are the environment variables I changed in order to go from local storage to spaces object storage:
I created an access key pair on the Digital Ocean API page and specified them in the app environment variables (above). I created 2 spaces buckets (named my-public-bucket and my-private-bucket as examples above) in the sfo3 region where my app is also hosted. I enabled CDN for the public one. Because my app uses a domain name that is not hosted with Digital Ocean, I wanted to use the default URL my-public-bucket.sfo3.cdn.digitaloceanspaces.com - so in order to get the web app to form URLs correctly I had to update the App Spec in Digital Ocean, editing these lines:
With this change, I could now upload an event image, save it, and the correct URL would be specified in the HTML.
I had to manually change the image permissions via the Digital Oceans Spaces UI, to make the image publicly available. I am the only person who will be creating events on this instance so this is an OK workaround but it'd be nice if that wasn't required.
Two questions:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions