ISSUE-203
This commit is contained in:
@ -76,6 +76,11 @@ var globalFlags = []cli.Flag{
|
||||
Usage: "path to static web files",
|
||||
Value: "",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "proxy-path",
|
||||
Usage: "path prefix when service is run behind a proxy",
|
||||
Value: "",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "ga-key",
|
||||
Usage: "key for google analytics (front end)",
|
||||
@ -234,6 +239,10 @@ func New() *Cmd {
|
||||
options = append(options, server.WebPath(v))
|
||||
}
|
||||
|
||||
if v := c.String("proxy-path"); v != "" {
|
||||
options = append(options, server.ProxyPath(v))
|
||||
}
|
||||
|
||||
if v := c.String("ga-key"); v != "" {
|
||||
options = append(options, server.GoogleAnalytics(v))
|
||||
}
|
||||
|
Reference in New Issue
Block a user