From e8fa841067638eaf09424baeb5b12571726d9d63 Mon Sep 17 00:00:00 2001 From: Benjamin Foote Date: Thu, 21 May 2020 14:45:14 -0700 Subject: [PATCH] #132 VOUCH_CONFIG usage --- README.md | 2 ++ env_google.sh | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 env_google.sh diff --git a/README.md b/README.md index 512ecf2d..599a7a36 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/env_google.sh b/env_google.sh new file mode 100755 index 00000000..1d00064d --- /dev/null +++ b/env_google.sh @@ -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 \ No newline at end of file