@@ -24,6 +24,7 @@ func main() {
24 upstreams := StringArray{}
24 upstreams := StringArray{}
25 skipAuthRegex := StringArray{}
25 skipAuthRegex := StringArray{}
26 googleGroups := StringArray{}
26 googleGroups := StringArray{}
27+ redisSentinelConnectionURLs := StringArray{}
28 config := flagSet.String("config", "", "path to config file")
29 config := flagSet.String("config", "", "path to config file")
29 showVersion := flagSet.Bool("version", false, "print version string")
30 showVersion := flagSet.Bool("version", false, "print version string")
@@ -76,7 +77,10 @@ func main() {
76 flagSet.Bool("cookie-httponly", true, "set HttpOnly cookie flag")
77 flagSet.Bool("cookie-httponly", true, "set HttpOnly cookie flag")
78 flagSet.String("session-store-type", "cookie", "the session storage provider to use")
79 flagSet.String("session-store-type", "cookie", "the session storage provider to use")
79− flagSet.String("redis-connection-url", "", "URL of redis server for redis session storage type (eg: redis://HOST[:PORT])")
80+ flagSet.String("redis-connection-url", "", "URL of redis server for redis session storage (eg: redis://HOST[:PORT])")
81+ flagSet.Bool("redis-use-sentinel", false, "Connect to redis via sentinels. Must set --redis-sentinel-master-name and --redis-sentinel-conneciton-urls to use this feature")
82+ flagSet.String("redis-sentinel-master-name", "", "Redis sentinel master name. Used in conjuction with --redis-use-sentinel")
83+ flagSet.Var(&redisSentinelConnectionURLs, "redis-sentinel-connection-urls", "List of Redis sentinel conneciton URLs (eg redis://HOST[:PORT]). Used in conjuction with --redis-use-sentinel")
81 flagSet.String("logging-filename", "", "File to log requests to, empty for stdout")
85 flagSet.String("logging-filename", "", "File to log requests to, empty for stdout")
82 flagSet.Int("logging-max-size", 100, "Maximum size in megabytes of the log file before rotation")
86 flagSet.Int("logging-max-size", 100, "Maximum size in megabytes of the log file before rotation")