Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.29 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.29 KB

Docker OAuth2 Proxy

CircleCI

This is a small docker image for oauth2_proxy which is a reverse proxy that provides authentication with Google, GitHub or other providers.

Configuration

Configure OAuth2 Proxy using config file, command line options, or environment variables. See bitly/oauth2_proxy documentation for more details.

Usage

Protect an upstream service e.g. http://someservice:1234 using Google as the provider (default) but limited to yourdomain.com email addresses:

$ docker run \
    -p 4180:4180 \
    -e OAUTH2_PROXY_CLIENT_ID="SOME_CLIENT_ID" \
    -e OAUTH2_PROXY_CLIENT_SECRET="SOME_CLIENT_SECRET" \
    -e OAUTH2_PROXY_COOKIE_SECRET="SOME_COOKIE_SECRET" \
    zappi/oauth2_proxy:2.1 \
    -—upstream=http://someservice:1234 \
    -—http-address=0.0.0.0:4180 \
    -—email-domain=yourdomain.com