All Templates / Authentication
oauth2-proxy
Reverse proxy that provides auth with Google and more identity providers
oauth2-proxy
oauth2-proxy/oauth2-proxy:v7.7.0
Just deployed
This template deploys OAuth2 Proxy, a reverse proxy and static file server that provides authentication using Providers (Google, GitHub, and others) to validate accounts by email, domain or group. It's particularly useful for adding authentication to legacy applications or implementing single sign-on (SSO) across multiple services.
Configure the following environment variables:
OAUTH2_PROXY_PROVIDER
: Set to "google" for Google OAuthOAUTH2_PROXY_EMAIL_DOMAINS
: Set to your company's email domain (e.g., "yourcompany.com")OAUTH2_PROXY_COOKIE_SECRET
: A secret string to encrypt cookies (generate a random string)OAUTH2_PROXY_CLIENT_ID
: Your Provider OAuth Client IDOAUTH2_PROXY_CLIENT_SECRET
: Your Provider OAuth Client SecretOAUTH2_PROXY_REDIRECT_URL
: The callback URL for OAuth (e.g., "https://your-proxy-domain/oauth2/callback")OAUTH2_PROXY_UPSTREAMS
: The internal service URL to proxy (e.g., "http://internal-service:8080")OAUTH2_PROXY_COOKIE_SECRET
OAUTH2_PROXY_EMAIL_DOMAINS
to your company's domainOAUTH2_PROXY_HTTP_ADDRESS
if you need to change the listening portFor issues with the template itself, please each out to me at [email protected]. For OAuth2 Proxy specific questions, refer to the official documentation.
Enjoy secure access to your internal services with OAuth2 Proxy!
Template Content
oauth2-proxy
quay.io/oauth2-proxy/oauth2-proxy:v7.7.0OAUTH2_PROXY_CLIENT_ID
Your Provider OAuth Client ID
OAUTH2_PROXY_UPSTREAMS
The internal service URL to proxy (e.g., "http://internal-service:8080"), note that if you used the RAILWAY_PRIVATE_DOMAIN ref you will need to add the port and the url scheme (e.g., "http://${{backend.RAILWAY_PRIVATE_DOMAIN}}:8080")
OAUTH2_PROXY_REDIRECT_URL
The callback URL for OAuth (e.g., "https://your-proxy-domain/oauth2/callback")
OAUTH2_PROXY_CLIENT_SECRET
Your Provider OAuth Client Secret
OAUTH2_PROXY_EMAIL_DOMAINS
The Email Domain to be whitelisted
Details
Youssef Siam's Projects
Created on Oct 7, 2024
10 total projects
7 active projects
100% success on recent deploys
Authentication
More templates in this category
Keycloak
Keycloak template with keywind theme + apple and discord providers
beuz's Projects
493
Authorizer
Open-source authentication and authorization solution for your business.
Lakhan Samani's Projects
598