Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bettercallshao/cgar
reCAPTCHA gated archive retriever
https://github.com/bettercallshao/cgar
docker file-download nodejs recaptcha s3
Last synced: 28 days ago
JSON representation
reCAPTCHA gated archive retriever
- Host: GitHub
- URL: https://github.com/bettercallshao/cgar
- Owner: bettercallshao
- License: mit
- Created: 2019-12-30T20:44:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T18:53:19.000Z (almost 2 years ago)
- Last Synced: 2024-10-04T04:44:52.649Z (about 1 month ago)
- Topics: docker, file-download, nodejs, recaptcha, s3
- Language: JavaScript
- Size: 134 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/bettercallshao/cgar)
# cgar
reCAPTCHA gated archive retriever# Setup
## Make a config file`./secret/config.yaml`
```
RECAPTCHA_SITE_KEY: "..."
RECAPTCHA_SECRET_KEY: "..."
downloads:
- id: "example"
bucket: "..."
key: "..."
accessKeyId: "..."
secretAccessKey: "..."
endpoint: "..."
```Only s3 compatible object stores are supported. I use minio.
## Start with docker compose
```
docker-compose up
```## Visit
`localhost:8080/ready`
`localhost:8080/download/example`
## Kubernetes
* Make a config map with `config.yaml`
* Mount the config map in the pod
* Set `CONFIG_PATH` to the path to `config.yaml`