All Projects → a5huynh → oauth2_proxy

a5huynh / oauth2_proxy

Licence: MIT license
Dockerization of bitly's oauth2_proxy

Programming Languages

Dockerfile
14818 projects
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to oauth2 proxy

Nginx Proxy Automation
Automated docker nginx proxy integrated with letsencrypt.
Stars: ✭ 2,302 (+3868.97%)
Mutual labels:  nginx-proxy
centminmod-magento2
Magento 2.2.2 Install Guide For Centmin Mod Nginx LEMP Stacks
Stars: ✭ 16 (-72.41%)
Mutual labels:  nginx-proxy
docker-letsencrypt-django-nginx-proxy-uwsgi-postgres
Docker + Letsencrypt + Django + Nginx-Proxy + uWSGI 教學
Stars: ✭ 26 (-55.17%)
Mutual labels:  nginx-proxy
Reading Code Of Nginx 1.9.2
nginx-1.9.2源码通读分析注释,带详尽函数中文分析注释以及相关函数流程调用注释,最全面的nginx源码阅读分析中文注释,更新完毕
Stars: ✭ 3,458 (+5862.07%)
Mutual labels:  nginx-proxy
docker-proxy-api
Nginx Proxy with Basic auth and SSL for Docker Rest API
Stars: ✭ 16 (-72.41%)
Mutual labels:  nginx-proxy
IdentityServer4.Contrib.AspNetCore.Testing
Testing framework for ASP.NET Core and Identity-Server 4
Stars: ✭ 16 (-72.41%)
Mutual labels:  oauth2-proxy
Htpc Docker Standup
A simple docker-compose based configuration to stand up a new HTPC w/ Plex, Deluge, Sonarr, Radarr and more!
Stars: ✭ 160 (+175.86%)
Mutual labels:  nginx-proxy
s3cr3t
A supercharged S3 reverse proxy
Stars: ✭ 55 (-5.17%)
Mutual labels:  nginx-proxy
nginx-config-reverse-proxy
Nginx Configuration for a Secure Reverse Proxy
Stars: ✭ 30 (-48.28%)
Mutual labels:  nginx-proxy
kubernetes-localdev
Create a local Kubernetes development environment on macOS or Windows and WSL2, including HTTPS/TLS and OAuth2/OIDC authentication.
Stars: ✭ 210 (+262.07%)
Mutual labels:  oauth2-proxy
lwip-esp8266
Upstream lwIP with complete history and cleaned up ESP8266 patchset on top
Stars: ✭ 17 (-70.69%)
Mutual labels:  upstream
casper
Yelp's internal caching proxy, powered by Nginx and OpenResty at its core
Stars: ✭ 81 (+39.66%)
Mutual labels:  nginx-proxy
ngx upstream jdomain
An asynchronous domain name resolution module for nginx upstream.
Stars: ✭ 71 (+22.41%)
Mutual labels:  upstream
Docker Waf
An NGINX and ModSecurity based Web Application Firewall for Docker
Stars: ✭ 181 (+212.07%)
Mutual labels:  nginx-proxy
oneplus3
GPL source code to Caesium kernel for OnePlus 3/3T
Stars: ✭ 45 (-22.41%)
Mutual labels:  upstream
Nginx Admins Handbook
How to improve NGINX performance, security, and other important things.
Stars: ✭ 12,463 (+21387.93%)
Mutual labels:  nginx-proxy
multiarch-letsencrypt-nginx-proxy
nginx-proxy, docker-gen and letsencrypt-nginx-proxy-companion on arm archs
Stars: ✭ 23 (-60.34%)
Mutual labels:  nginx-proxy
nginx-conf
⚙️ Nginx conf of FastGit, core part of fastgit web booster module
Stars: ✭ 73 (+25.86%)
Mutual labels:  nginx-proxy
nginx-reverseproxy
A simple implementation of a multidomain nginx reverse proxy, using Node apps.
Stars: ✭ 46 (-20.69%)
Mutual labels:  nginx-proxy
docker-eth-dev
Hacking together a containerized environment for Ethereum development with Truffle using Parity
Stars: ✭ 22 (-62.07%)
Mutual labels:  nginx-proxy

Build Status license: MIT

Official fork for bitly/oauth2_proxy

FYI for those coming here, as of 03/2019 the bitly project is no longer getting updated and has been officially forked to a new project: https://github.com/pusher/oauth2_proxy

This new project has been getting updates and has it's own Docker image. If you're interested in using the latest and greatest, please check them out! Otherwise this repo + Docker image will stay as is 🙂.

oauth2_proxy dockerization

This is a Dockerization of the handy dandy bitly OAuth Proxy.

Check out the bitly github page for more details on the different command line options that can be passed in.

This is also an automated Docker Hub build

Supported tags and respective Dockerfile links

Quickstart with Docker Compose

First, configure your client secret/id/cookie secret in the docker-compose.yml file and replace all references to example.com with your domain.

Then simply run:

docker-compose up

The container will be built and an nginx proxy automatically configure to connect to the oauth2 proxy. Navigate to http://localhost:4180/ping to check out whether the proxy is up and running.

You will be asked to authenticated and if successful, redirected to the upstream nginx container serving a simple HTML page.

Quickstart without Docker Compose

The following example assumes you have your upstream host located at upstream:80

docker run -P a5huynh/oauth2_proxy \
    --cookie-secure=false \
    --upstream="http://upstream:80" \
    --http-address="0.0.0.0:4180" \
    --redirect-url="http://example.com/oauth2/callback" \
    --email-domain="example.com" \
    --cookie-secret=<cookie-secret> \
    --client-id=<client-id> \
    --client-secret=<client-secret>

Configuration

By default I set the upstream and http-address to the following:

--upstream=http://0.0.0.0:8080/
--http-address=0.0.0.0:4180

This allows us to easily configure our upstream or nginx proxy to those addresses.

Environment Variables

Alternatively you can set the cookie-secret, client-id, and/or client-secret as environment variables using the following variables below:

OAUTH2_PROXY_COOKIE_SECRET     # The seed string for secure cookies
OAUTH2_PROXY_CLIENT_ID         # The Google OAuth Client ID
OAUTH2_PROXY_CLIENT_SECRET     # The Google OAuth Client Secret

Example Usage w/ environment variables

docker run -e OAUTH2_PROXY_COOKIE_SECRET=<cookie-secret> \
    -e OAUTH2_PROXY_CLIENT_ID=<client-id> \
    -e OAUTH2_PROXY_CLIENT_SECRET=<client-secret> \
    a5huynh/oauth2_proxy
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].