Skip to content
Snippets Groups Projects
Commit 426ccc45 authored by Rohith's avatar Rohith Committed by GitHub
Browse files

- adding additional environment config options (#95)

parent 197d3e2e
No related branches found
No related tags found
No related merge requests found
...@@ -349,6 +349,7 @@ func getOptions() []cli.Flag { ...@@ -349,6 +349,7 @@ func getOptions() []cli.Flag {
Name: "listen", Name: "listen",
Usage: "the interface the service should be listening on", Usage: "the interface the service should be listening on",
Value: defaults.Listen, Value: defaults.Listen,
EnvVar: "PROXY_LISTEN",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "client-secret", Name: "client-secret",
...@@ -376,6 +377,7 @@ func getOptions() []cli.Flag { ...@@ -376,6 +377,7 @@ func getOptions() []cli.Flag {
cli.DurationFlag{ cli.DurationFlag{
Name: "idle-duration", Name: "idle-duration",
Usage: "the expiration of the access token cookie, if not used within this time its removed", Usage: "the expiration of the access token cookie, if not used within this time its removed",
EnvVar: "PROXY_IDLE_DURATION",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "redirection-url", Name: "redirection-url",
...@@ -386,6 +388,7 @@ func getOptions() []cli.Flag { ...@@ -386,6 +388,7 @@ func getOptions() []cli.Flag {
Name: "revocation-url", Name: "revocation-url",
Usage: "the url for the revocation endpoint to revoke refresh token", Usage: "the url for the revocation endpoint to revoke refresh token",
Value: "/oauth2/revoke", Value: "/oauth2/revoke",
EnvVar: "PROXY_REVOCATION_URL",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "store-url", Name: "store-url",
...@@ -460,7 +463,7 @@ func getOptions() []cli.Flag { ...@@ -460,7 +463,7 @@ func getOptions() []cli.Flag {
}, },
cli.StringSliceFlag{ cli.StringSliceFlag{
Name: "forwarding-domains", Name: "forwarding-domains",
Usage: "a list of domains which should be signed, anything is just relayed", Usage: "a list of domains which should be signed; everything else is relayed unsigned",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "tls-cert", Name: "tls-cert",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment