ISSUE-203

This commit is contained in:
Andrea Spacca
2019-03-30 12:35:57 +01:00
parent 314d24a876
commit 61a4b4fe33
11 changed files with 9304 additions and 9608 deletions

View File

@ -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))
}