https://github.com/koddr/do-spaces-microservice
🧺 Microservice for upload, remove and list objects to/from your DigitalOcean Spaces. Production-ready, zero configuration, working out of the box!
https://github.com/koddr/do-spaces-microservice
digitalocean do-spaces microservice
Last synced: 6 months ago
JSON representation
🧺 Microservice for upload, remove and list objects to/from your DigitalOcean Spaces. Production-ready, zero configuration, working out of the box!
- Host: GitHub
- URL: https://github.com/koddr/do-spaces-microservice
- Owner: koddr
- License: apache-2.0
- Created: 2021-08-22T09:58:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-22T08:25:54.000Z (about 1 year ago)
- Last Synced: 2025-04-29T19:58:23.493Z (11 months ago)
- Topics: digitalocean, do-spaces, microservice
- Language: Go
- Homepage: https://shostak.dev/
- Size: 91.8 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🧺 Microservice for DigitalOcean Spaces
Upload, remove and list objects to/from your CDN. Production-ready, zero configuration, working out of the box!
## ⚡️ Quick start
Sign in to your DigitalOcean account.
> **Don't have an account yet?** Join DigitalOcean at our [referral link](https://m.do.co/c/b41859fa9b6e)! Your profit is **$100** and we get $25. This will allow you **not** to think about paying for Spaces for 10 months, and we will send the money received to support the [Komentory](https://github.com/Komentory) project servers.
Next, create your own [Spaces](https://docs.digitalocean.com/products/spaces/quickstart/#create-a-space) and upload folder with permissions. Go to the `Spaces access keys` section at the [Manage Keys](https://cloud.digitalocean.com/account/api/tokens) page and create a new keys. _Save them to a notepad for later!_
OK, now we're ready to click this button:
[](https://cloud.digitalocean.com/apps/new?repo=https://github.com/Komentory/do-spaces-microservice/tree/main)
After that, please fill all of the following environment variables (all variables are **required**):

Choose name of your web service (which will be displayed in the Spaces URL, like `https://your-web-service.ondigitalocean.app`), region and a **Basic plan** (_$5/mo_) for start. Click to **Launch Basic App** and get our congratulations.
You have successfully deployed microservice to DigitalOcean! 🎉
## 📖 Next steps
Open your favorite REST API tool and send requests:
- **GET** `/v1/list` (get all objects from upload folder)
- Request body (JSON): none
- **PUT** `/v1/upload` (put object to upload folder)
- Request body (JSON): `{ "type": "", "path": "" }`
- Supported types: `archive`, `audio`, `document`, `image`, `video`
- **DELETE** `/v1/remove` (delete object from upload folder by object key)
- Request body (JSON): `{ "key": "", "version_id": "" }`
## ⚠️ License
`do-spaces-microservice` is free and open-source software licensed under the [Apache 2.0 License](https://github.com/Komentory/do-spaces-microservice/blob/master/LICENSE).