vouch-proxy/config/config.yml_example_google

32 lines
1.1 KiB
Plaintext

# Vouch Proxy configuration
# bare minimum to get Vouch Proxy running with google
vouch:
domains:
- yourdomain.com
- yourotherdomain.com
# set allowAllUsers: true to use Vouch Proxy to just accept anyone who can authenticate with Google
# allowAllUsers: true
cookie:
# allow the jwt/cookie to be set into http://yourdomain.com (defaults to true, requiring https://yourdomain.com)
secure: false
# vouch.cookie.domain must be set when enabling allowAllUsers
# domain: yourdomain.com
oauth:
provider: google
# get credentials from...
# https://console.developers.google.com/apis/credentials
client_id: xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com
client_secret: xxxxxxxxxxxxxxxxxxxxxxxx
# Google may require callback_urls (redirect URIs) to be 'https'
callback_urls:
- https://yourdomain.com:9090/auth
- https://yourotherdomain.com:9090/auth
preferredDomain: yourdomain.com # be careful with this option, it may conflict with chrome on Android
# endpoints are set from https://godoc.org/golang.org/x/oauth2/google