Commit 17174769 by Arve Knudsen Committed by GitHub

Server: Add protocol to Cfg (#27071)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent 3b248fcc
...@@ -227,6 +227,7 @@ type Cfg struct { ...@@ -227,6 +227,7 @@ type Cfg struct {
AppSubUrl string AppSubUrl string
ServeFromSubPath bool ServeFromSubPath bool
StaticRootPath string StaticRootPath string
Protocol Scheme
// build // build
BuildVersion string BuildVersion string
...@@ -672,6 +673,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error { ...@@ -672,6 +673,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
cfg.ServeFromSubPath = ServeFromSubPath cfg.ServeFromSubPath = ServeFromSubPath
Protocol = HTTP Protocol = HTTP
cfg.Protocol = Protocol
protocolStr, err := valueAsString(server, "protocol", "http") protocolStr, err := valueAsString(server, "protocol", "http")
if err != nil { if err != nil {
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment