I’m new at this, and I’ve been going around in circles trying to setup a mastodon droplet to use a digitalocean space.
(As an aside, it would be helpful to have a DO tutorial on this… everything I’ve found online seems dated and they all disagree with each other.)
At the moment I have my env.production file set like this:
S3_HOSTNAME=nyc3.digitaloceanspaces.com S3_ENDPOINT=https://bucketname.nyc3.digitaloceanspaces.com S3_ACCESS_KEY_ID=xxxxxxxxxx S3_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYY S3_ALIAS_HOST=images.mysite.com S3_REGION=nyc.3
“bucketname” is the name of my space. I’ve scrambled the access key and secret, and changed the website url to a generic.
I created a let’s encrypt certificate for the subdomain “images.”
At the moment there is no avatar or header, and I can’t upload new ones. I just get the elephant pounding on the keyboard when I try.
If I right click on my avatar and open it in a new tab I get “AccessDeniedbucketnamestx000000000000173315c3a-00636c3b7b-3f2ad568-nyc3c3f2ad568-nyc3c-nyc3-zg03”
I’ve tried using the edge endpoint as well.
I’m clearly missing something.
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!
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.
I believe that your
S3_ENDPOINTvariable needs to be changed to:
The complete config should look as follows:
Let me know how it goes.
This comment has been deleted
Want to learn more? Join the DigitalOcean Community!
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Sign up now
I am having a similar problem. I got the spaces files to load correctly thanks to above. Now how do I point the resources to the CDN nyc3.cdn.digitaloceanspaces.com?
CDN_HOST? I tried and the site refused to load.