btorch / docker-oauth2-proxy

Docker image for oauth2_proxy, a reverse proxy that provides authentication with Google, Github or other providers

Home Page:https://hub.docker.com/r/zappi/oauth2_proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Docker image for oauth2_proxy, a reverse proxy that provides authentication with Google, Github or other providers

https://hub.docker.com/r/zappi/oauth2_proxy

License:MIT License