Server: Add protocol to Cfg (#27071)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-08-19 14:39:13 +02:00
committed by GitHub
parent 3b248fccc8
commit 1717476984
+2
View File
@@ -227,6 +227,7 @@ type Cfg struct {
AppSubUrl string
ServeFromSubPath bool
StaticRootPath string
Protocol Scheme
// build
BuildVersion string
@@ -672,6 +673,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
cfg.ServeFromSubPath = ServeFromSubPath
Protocol = HTTP
cfg.Protocol = Protocol
protocolStr, err := valueAsString(server, "protocol", "http")
if err != nil {
return err