-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.go
29 lines (23 loc) · 1.09 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package main
import (
"flag"
"log"
"time"
)
var (
httpAddress = flag.String("http-address", ":3333", "HTTP listener address")
httpBye = flag.String("http-bye", "This is a proxy server. Does not respond to non-proxy requests.", "")
httpRealm = flag.String("http-realm", "Proxy", "HTTP authentication realm")
duoIKey = flag.String("duo-ikey", "DIKT827ALIAIZM9N31PH", "integration key provided by Duo")
duoSKey = flag.String("duo-skey", "Z1BkT2OriakMCxEJg3ShPfxCCQpOX3o0ugEuoT1L", "secret key provided by Duo")
duoHost = flag.String("duo-host", "api-bc24bc24.duosecurity.com", "hostname of Duo API")
duoUA = flag.String("duo-ua", "abcdefgh", "userAgent reported to Duo API")
duoSkip = flag.Bool("duo-skip", false, "bypass Duo verifications")
duoTTL = flag.Duration("duo-ttl", 24*time.Hour, "how long to remember calls to Duo")
githubBase = flag.String("github-base", "https://api.git.mycompany.com", "GitHub Base URL")
githubTTL = flag.Duration("github-ttl", 15*time.Minute, "how long to remember calls to GitHub")
)
func init() {
log.SetFlags(log.Flags() | log.Lshortfile)
flag.Parse()
}