Disable domain based routing for now

This commit is contained in:
Harshavardhana
2015-04-30 21:15:53 -07:00
parent f3078d047c
commit bbc32d6ac0
4 changed files with 16 additions and 13 deletions

14
main.go
View File

@@ -93,11 +93,11 @@ EXAMPLES:
}
var flags = []cli.Flag{
cli.StringFlag{
Name: "domain",
Value: "",
Usage: "domain used for routing incoming API requests",
},
// cli.StringFlag{
// Name: "domain",
// Value: "",
// Usage: "domain used for routing incoming API requests",
// },
cli.StringFlag{
Name: "api-address",
Value: ":9000",
@@ -191,7 +191,7 @@ func getAPIServerConfig(c *cli.Context) httpserver.Config {
}
tls := (certFile != "" && keyFile != "")
return httpserver.Config{
Domain: c.GlobalString("domain"),
// Domain: c.GlobalString("domain"),
Address: c.GlobalString("api-address"),
TLS: tls,
CertFile: certFile,
@@ -201,7 +201,7 @@ func getAPIServerConfig(c *cli.Context) httpserver.Config {
func getWebServerConfigFunc(c *cli.Context) server.StartServerFunc {
config := httpserver.Config{
Domain: c.GlobalString("domain"),
// Domain: c.GlobalString("domain"),
Address: c.GlobalString("web-address"),
TLS: false,
CertFile: "",