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 {
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
......
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