Skip to content

Commit

Permalink
#132 VOUCH_CONFIG usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bnfinet committed May 21, 2020
1 parent 41ab232 commit e8fa841
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ Environmental variable names are documented in [config/config.yml_example](https

All lists with multiple values must be comma separated: `VOUCH_DOMAINS="yourdomain.com,yourotherdomain.com"`

The variable `VOUCH_CONFIG` can be used to set an alternate location for the configuration file. `VOUCH_ROOT` can be used to set an alternate root directory for Vouch Proxy to look for support files.

## More advanced configurations

- [cacheing of the Vouch Proxy validation response in Nginx](https://github.com/vouch/vouch-proxy/issues/76#issuecomment-464028743)
Expand Down
18 changes: 18 additions & 0 deletions env_google.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# vouch config via Environmental Variables
# bare minimum to get vouch running with google
echo "starting VP with env vars"

export VOUCH_DOMAINS=bnf.net
export VOUCH_COOKIE_SECURE=false
export VOUCH_TESTING=true
export VOUCH_TEST_URLS="http://naga.bnf.net,http://login.bnf.net:9090,http://login.bnf.net:9090/logout?url=https://gogs.fs.bnf.net/vouch/vouch-proxy/src/bug/redirect_allowed"
export OAUTH_PROVIDER=google
export OAUTH_CLIENT_ID=721178122688-6734r7oqlcraq6jr9l8ksm8u17104g8g.apps.googleusercontent.com
export OAUTH_CLIENT_SECRET=Tvg8kNhM_DBCPH_XmztMh6Mr
export OAUTH_CALLBACK_URLS=http://login.bnf.net:9090/auth

echo $OAUTH_CALLBACK_URLS

./vouch-proxy

0 comments on commit e8fa841

Please sign in to comment.