Sign inSign up

rjshrjndrn/oauth2-proxy

By rjshrjndrn

•Updated 11 months ago

Bare minimum size image for https://github.com/bitly/oauth2_proxy

Image
0

3.6K

rjshrjndrn/oauth2-proxy repository overview

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⁠

⁠Usage

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

⁠As 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

Tag summary

Content type

Image

Digest

sha256:1d49b2755…

Size

64.8 MB

Last updated

11 months ago

docker pull rjshrjndrn/oauth2-proxy