git.iko.soy/typeable/oauth2-proxy
on master help sign in
Fix some typos
commitfb52bdb90cbf638b65c900c05582eace43b23223 authorferhat elmas <elmas.ferhat@gmail.com> dateTue 13 Aug 2019, 12:42 (7 years ago) parente1b70dc
3 files changed+5−5
docs/configuration/configuration.md+2−2 main.go+2−2 oauthproxy.go+1−1
docs/configuration/configuration.md+2−2
@@ -82,8 +82,8 @@ Usage of oauth2_proxy:
8282 -redeem-url string: Token redemption endpoint
8383 -redirect-url string: the OAuth Redirect URL. ie: "https://internalapp.yourcompany.com/oauth2/callback"
8484 -redis-connection-url string: URL of redis server for redis session storage (eg: redis://HOST[:PORT])
85− -redis-sentinel-master-name string: Redis sentinel master name. Used in conjuction with --redis-use-sentinel
86− -redis-sentinel-connection-urls: List of Redis sentinel conneciton URLs (eg redis://HOST[:PORT]). Used in conjuction with --redis-use-sentinel
85+ -redis-sentinel-master-name string: Redis sentinel master name. Used in conjunction with --redis-use-sentinel
86+ -redis-sentinel-connection-urls: List of Redis sentinel connection URLs (eg redis://HOST[:PORT]). Used in conjunction with --redis-use-sentinel
8787 -redis-use-sentinel: Connect to redis via sentinels. Must set --redis-sentinel-master-name and --redis-sentinel-connection-urls to use this feature (default: false)
8888 -request-logging: Log requests to stdout (default true)
8989 -request-logging-format: Template for request log lines (see "Logging Configuration" paragraph below)
main.go+2−2
@@ -86,8 +86,8 @@ func main() {
8686 flagSet.String("session-store-type", "cookie", "the session storage provider to use")
8787 flagSet.String("redis-connection-url", "", "URL of redis server for redis session storage (eg: redis://HOST[:PORT])")
8888 flagSet.Bool("redis-use-sentinel", false, "Connect to redis via sentinels. Must set --redis-sentinel-master-name and --redis-sentinel-connection-urls to use this feature")
89− flagSet.String("redis-sentinel-master-name", "", "Redis sentinel master name. Used in conjuction with --redis-use-sentinel")
90− flagSet.Var(&redisSentinelConnectionURLs, "redis-sentinel-connection-urls", "List of Redis sentinel connection URLs (eg redis://HOST[:PORT]). Used in conjuction with --redis-use-sentinel")
89+ flagSet.String("redis-sentinel-master-name", "", "Redis sentinel master name. Used in conjunction with --redis-use-sentinel")
90+ flagSet.Var(&redisSentinelConnectionURLs, "redis-sentinel-connection-urls", "List of Redis sentinel connection URLs (eg redis://HOST[:PORT]). Used in conjunction with --redis-use-sentinel")
9191
9292 flagSet.String("logging-filename", "", "File to log requests to, empty for stdout")
9393 flagSet.Int("logging-max-size", 100, "Maximum size in megabytes of the log file before rotation")
oauthproxy.go+1−1
@@ -898,7 +898,7 @@ func isAjax(req *http.Request) bool {
898898 return false
899899}
900900
901−// ErrorJSON returns the error code witht an application/json mime type
901+// ErrorJSON returns the error code with an application/json mime type
902902func (p *OAuthProxy) ErrorJSON(rw http.ResponseWriter, code int) {
903903 rw.Header().Set("Content-Type", applicationJSON)
904904 rw.WriteHeader(code)