Bare minimum size image for https://github.com/bitly/oauth2_proxy
3.6K
This project is inspired by mryu/oauth2-proxy, which is not updated for last 2 years. This build uses centurylink/ca-certs. Oauth2 is updated to 2.2 which support mutliple upstream urls and more. please visit Oauth2 docs
As a standalone container:
$ docker run \
-p 8080:4180 \
-e OAUTH2_PROXY_CLIENT_ID="YOUR_CLIENT_ID" \
-e OAUTH2_PROXY_CLIENT_SECRET="YOUR_CLIENT_SECRET" \
-e OAUTH2_PROXY_COOKIE_SECRET="COOKIE_SECRET" \
rjshrjndrn/oauth2-proxy:2.2 \
-cookie-secure=false \
-upstream=http://web:3000 \
-redirect-url=http://127.0.0.1:8080 \
-http-address=0.0.0.0:4180 \
-email-domain=example.com
docker-compose service:version: '2'
services:
web:
image: web-image
expose:
- 3000
proxy:
image: rjshrjndrn/oauth2-proxy:2.2
environment:
OAUTH2_PROXY_CLIENT_ID: "YOUR_CLIENT_ID"
OAUTH2_PROXY_CLIENT_SECRET: "YOUR_CLIENT_SECRET"
OAUTH2_PROXY_COOKIE_SECRET: "COOKIE_SECRET"
ports:
- 8080:4180
command: |
-cookie-secure=false
-upstream=http://web:3000
-redirect-url=http://127.0.0.1:8080
-http-address=0.0.0.0:4180
-email-domain=example.com
Content type
Image
Digest
sha256:1d49b2755…
Size
64.8 MB
Last updated
11 months ago
docker pull rjshrjndrn/oauth2-proxy