Add segment integration

This commit is contained in:
marcos
2017-12-01 17:37:20 -03:00
parent 2ef157f4cf
commit efaa37e0ad
5 changed files with 69 additions and 5 deletions

View File

@@ -39,6 +39,8 @@ var DockerClientID, DockerClientSecret string
var PlaygroundDomain string
var SegmentId string
func ParseFlags() {
flag.StringVar(&LetsEncryptCertsDir, "letsencrypt-certs-dir", "/certs", "Path where let's encrypt certs will be stored")
flag.BoolVar(&UseLetsEncrypt, "letsencrypt-enable", false, "Enabled let's encrypt tls certificates")
@@ -74,6 +76,8 @@ func ParseFlags() {
flag.StringVar(&PlaygroundDomain, "playground-domain", "localhost", "Domain to use for the playground")
flag.StringVar(&AdminToken, "admin-token", "", "Token to validate admin user for admin endpoints")
flag.StringVar(&SegmentId, "segment-id", "", "Segment id to post metrics")
flag.Parse()
SecureCookie = securecookie.New([]byte(CookieHashKey), []byte(CookieBlockKey))