29 lines
781 B
Markdown
29 lines
781 B
Markdown
# oauth2-proxy
|
|
|
|
## usage
|
|
|
|
example docker-compose config for raindrop api.
|
|
|
|
```docker-compose
|
|
raindrop-api:
|
|
image: git.zatch.ru/tsivinsky/oauth2-proxy:latest
|
|
container_name: raindrop-api
|
|
restart: unless-stopped
|
|
expose:
|
|
- 5000
|
|
environment:
|
|
- AUTH_CONFIG=/config/config.json
|
|
- CLIENT_ID={raindrop client_id}
|
|
- CLIENT_SECRET={raindrop client_secret}
|
|
- REDIRECT_URI={url to this service}/oauth/callback
|
|
- API_URL=https://api.raindrop.io/rest/v1
|
|
- AUTH_URL=https://raindrop.io/oauth/authorize
|
|
- TOKEN_URL=https://raindrop.io/oauth/access_token
|
|
volumes:
|
|
- ./data/raindrop-api:/config
|
|
```
|
|
|
|
# credits
|
|
|
|
thanks to [this repo](https://github.com/douglasmakey/oauth2-example) for example implementation of oauth2.
|