This is a small docker image for oauth2_proxy
which is a reverse proxy that provides authentication with Google, GitHub or other providers.
Configure OAuth2 Proxy using config file, command line options, or environment variables. See bitly/oauth2_proxy
documentation for more details.
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