https://github.com/dmarby/yokuso
DigitalOcean Spaces proxy for Dropshare, using OpenResty
https://github.com/dmarby/yokuso
digitalocean digitalocean-spaces dropshare openresty
Last synced: about 2 months ago
JSON representation
DigitalOcean Spaces proxy for Dropshare, using OpenResty
- Host: GitHub
- URL: https://github.com/dmarby/yokuso
- Owner: DMarby
- License: mit
- Created: 2018-03-06T18:41:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-01T23:24:17.000Z (about 7 years ago)
- Last Synced: 2025-02-07T15:44:51.048Z (3 months ago)
- Topics: digitalocean, digitalocean-spaces, dropshare, openresty
- Language: Lua
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Yokusō
[DigitalOcean Spaces](https://www.digitalocean.com/products/spaces/) proxy for [Dropshare](https://getdropsha.re/), using [OpenResty](https://openresty.org).
Yokusō makes it possible to use a private DigitalOcean Space with Dropshare, without needing to store the API keys on your device.
It also caches the requests, to serve the files you upload faster.## Usage
### Running the service
To run Yokusō, it's recommended to use Docker.
To start off, build the container:
```
docker build -t yokuso:latest .
```
You can now run it with the following command:
```
docker run \
-p 80:80 \
-v /var/cache/nginx:/var/cache/nginx \
-e SPACES_REGION="" \
-e ACCESS_KEY_ID="" \
-e SECRET_ACCESS_KEY="" \
-e SPACES_ENDPOINT="" \
-e ROOT_REDIRECT="http://google.com" \
-e CLIENT_ACCESS_KEY_ID="" \
-e CLIENT_SECRET_ACCESS_KEY="" \
yokuso:latest
```### Configuring Dropshare
You can configure Dropshare by adding a [Custom S3 API Compliant Connection](https://dropshare.zendesk.com/hc/en-us/articles/201139232-How-to-set-up-Amazon-S3-or-S3-API-compatible-connections).If you are not using path-style URLs, Yokusō will need to run on a subdomain.
Set the `server` in drop share to the main domain, and `bucket name` to the subdomain (e.g. if Yokusō is running on `dump.dmarby.se`, the `server` would be `dmarby.se`, and the `bucket name` would be `dump`.If you are using path-style URLs, set the `server` to the domain where Yokusō is running, and the `bucket name` to anything.
For access key and secret key, enter the values you specified in `CLIENT_ACCESS_KEY_ID` and `CLIENT_SECRET_ACCESS_KEY` above.
## Thanks to
* [Kamal Nasser](https://kamal.io) for making the error page.
* [Moriyoshi Koizumi](https://github.com/moriyoshi) for [their work](https://github.com/DMarby/api-gateway-aws/commit/35fd7af0d9783247a3085bacac3421038f382432) extending api-gateway-aws.
* [Hector Castro](https://github.com/hectcastro) for creating [docker-s3-proxy-cache](https://github.com/azavea/docker-s3-proxy-cache) which inspired this project.