Skip to content

Commit

Permalink
Merge pull request bitly#219 from 18F/signature-key-env-var
Browse files Browse the repository at this point in the history
OAUTH2_PROXY_SIGNATURE_KEY env var, README update
  • Loading branch information
jehiah committed Feb 25, 2016
2 parents 293d674 + 87d80d6 commit 42f1651
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,16 @@ Multiple upstreams can either be configured by supplying a comma separated list

### Environment variables

The environment variables `OAUTH2_PROXY_CLIENT_ID`, `OAUTH2_PROXY_CLIENT_SECRET`, `OAUTH2_PROXY_COOKIE_SECRET`, `OAUTH2_PROXY_COOKIE_DOMAIN` and `OAUTH2_PROXY_COOKIE_EXPIRE` can be used in place of the corresponding command-line arguments.
The following environment variables can be used in place of the corresponding command-line arguments:

- `OAUTH2_PROXY_CLIENT_ID`
- `OAUTH2_PROXY_CLIENT_SECRET`
- `OAUTH2_PROXY_COOKIE_NAME`
- `OAUTH2_PROXY_COOKIE_SECRET`
- `OAUTH2_PROXY_COOKIE_DOMAIN`
- `OAUTH2_PROXY_COOKIE_EXPIRE`
- `OAUTH2_PROXY_COOKIE_REFRESH`
- `OAUTH2_PROXY_SIGNATURE_KEY`

## SSL Configuration

Expand Down
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type Options struct {

RequestLogging bool `flag:"request-logging" cfg:"request_logging"`

SignatureKey string `flag:"signature-key" cfg:"signature_key"`
SignatureKey string `flag:"signature-key" cfg:"signature_key" env:"OAUTH2_PROXY_SIGNATURE_KEY"`

// internal values that are set after config validation
redirectURL *url.URL
Expand Down

0 comments on commit 42f1651

Please sign in to comment.