Controller Service proxies rpc calls to the corresponding servers

This commit is contained in:
Krishna Srinivas
2015-09-19 01:30:09 -07:00
parent c953b0dab3
commit e600bd6b4f
12 changed files with 263 additions and 141 deletions

View File

@@ -42,12 +42,14 @@ func getServerConfig(c *cli.Context) APIConfig {
Fatalln("Both certificate and key are required to enable https.")
}
tls := (certFile != "" && keyFile != "")
return APIConfig{
Address: c.GlobalString("address"),
TLS: tls,
CertFile: certFile,
KeyFile: keyFile,
RateLimit: c.GlobalInt("ratelimit"),
Address: c.GlobalString("address"),
AddressRPC: c.GlobalString("address-rpcserver"),
TLS: tls,
CertFile: certFile,
KeyFile: keyFile,
RateLimit: c.GlobalInt("ratelimit"),
}
}