-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathoauth2-proxy.conf
More file actions
24 lines (18 loc) · 880 Bytes
/
oauth2-proxy.conf
File metadata and controls
24 lines (18 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
provider = "github"
# OAuth2 settings
redirect_url = "http://localhost/oauth2/callback"
email_domains = ["*"] # Allow all email domains
whitelist_domains = [".localhost"] # Whitelist localhost domain
# GitHub scopes requested during OAuth
scope = "repo,read:user,user:email"
# Upstream applications that oauth2-proxy will authenticate and forward to
upstreams = ["http://localhost:8000", "http://webhosting:8000"]
# OAuth2-proxy options
pass_access_token = true # Pass the GitHub OAuth access token to upstream
set_authorization_header = true # Set the authorization header with the access token
set_xauthrequest = true # Set additional X-Auth headers for the upstream app
pass_basic_auth = true # Pass basic auth headers
# Cookie settings (disable secure cookies for local testing)
cookie_secure = false
# Proxy server listening address
http_address = "0.0.0.0:4180"