No description
- Go 86.1%
- Dockerfile 10.8%
- Just 3.1%
| .dockerignore | ||
| .gitignore | ||
| config.go | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| Justfile | ||
| main.go | ||
| readme.md | ||
oauth2-proxy
usage
example docker-compose config for raindrop api.
raindrop-api:
image: git.tsivinsky.com/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=http://localhost:5000/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
example for google oauth2
youtube-oauth:
image: git.tsivinsky.com/tsivinsky/oauth2-proxy:latest
container_name: youtube-oauth
restart: unless-stopped
ports:
- 5000:5000
environment:
- AUTH_CONFIG=/config/config.json
- CLIENT_ID={google client_id}
- CLIENT_SECRET={google client_secret}
- REDIRECT_URI=http://localhost:5000/oauth/callback
- API_URL=https://www.googleapis.com
- AUTH_URL=https://accounts.google.com/o/oauth2/v2/auth
- TOKEN_URL=https://oauth2.googleapis.com/token
volumes:
- ./data/google-api:/config
credits
thanks to this repo for example implementation of oauth2.