feat(config): add grpc config. (#255)

This commit is contained in:
Bo-Yi Wu
2017-07-24 18:58:30 +08:00
committed by GitHub
parent 9a52f8f2b5
commit 41a8a609be
6 changed files with 35 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ import (
// RunHTTPServer provide run http or https protocol.
func RunHTTPServer() (err error) {
LogAccess.Debug("HTTPD server is running on " + PushConf.Core.Port + " port.")
if PushConf.Core.AutoTLS.Enabled {
err = gracehttp.Serve(autoTLSServer())
} else if PushConf.Core.SSL && PushConf.Core.CertPath != "" && PushConf.Core.KeyPath != "" {