example config updates

This commit is contained in:
Jehiah Czebotar 2015-05-26 09:18:03 -04:00
parent 442be96039
commit c6946893e0

View File

@ -1,5 +1,5 @@
## Google Auth Proxy Config File ## OAuth2 Proxy Config File
## https://github.com/bitly/google_auth_proxy ## https://github.com/bitly/oauth2_proxy
## <addr>:<port> to listen on for HTTP clients ## <addr>:<port> to listen on for HTTP clients
# http_address = "127.0.0.1:4180" # http_address = "127.0.0.1:4180"
@ -22,16 +22,18 @@
## when disabled the upstream Host is used as the Host Header ## when disabled the upstream Host is used as the Host Header
# pass_host_header = true # pass_host_header = true
## Google Apps Domains to allow authentication for ## Email Domains to allow authentication for (this whitelists any email on this domain)
# google_apps_domains = [ # google_apps_domains = [
# "yourcompany.com" # "yourcompany.com"
# ] # ]
## The OAuth Client ID, Secret
## The Google OAuth Client ID, Secret
# client_id = "123456.apps.googleusercontent.com" # client_id = "123456.apps.googleusercontent.com"
# client_secret = "" # client_secret = ""
## Pass OAuth Access token to upstream via "X-Forwarded-Access-Token"
# pass_access_token = false
## Authenticated Email Addresses File (one email per line) ## Authenticated Email Addresses File (one email per line)
# authenticated_emails_file = "" # authenticated_emails_file = ""
@ -44,19 +46,20 @@
## optional directory with custom sign_in.html and error.html ## optional directory with custom sign_in.html and error.html
# custom_templates_dir = "" # custom_templates_dir = ""
## Cookie Settings ## Cookie Settings
## Secret - the seed string for secure cookies; should be 16, 24, or 32 bytes ## Secret - the seed string for secure cookies; should be 16, 24, or 32 bytes
## for use with an AES cipher when cookie_refresh or pass_access_code ## for use with an AES cipher when cookie_refresh or pass_access_token
## is set ## is set
## Domain - optional cookie domain to force cookies to (ie: .yourcompany.com) ## Domain - (optional) cookie domain to force cookies to (ie: .yourcompany.com)
## Expire - expire timeframe for cookie ## Expire - (duration) expire timeframe for cookie
## Refresh - refresh the cookie when less than this much time remains before ## Refresh - (duration) refresh the cookie when less than this much time remains before
## expiration; should be less than cookie_expire; set to 0 to disable ## expiration; should be less than cookie_expire; set to 0 to disable.
## Refresh revalidated the OAuth token to ensure it is still valid. ie: 24h
## Secure - secure cookies are only sent by the browser of a HTTPS connection (recommended)
## HttpOnly - httponly cookies are not readable by javascript (recommended)
# cookie_secret = "" # cookie_secret = ""
# cookie_domain = "" # cookie_domain = ""
# cookie_expire = "168h" # cookie_expire = "168h"
# cookie_refresh = "144h" # cookie_refresh = ""
# cookie_secure = true # cookie_secure = true
# cookie_httponly = true # cookie_httponly = true
# pass_access_code = true