Server: Add protocol to Cfg (#27071)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
pull/26732/head
Arve Knudsen 5 years ago committed by GitHub
parent 3b248fccc8
commit 1717476984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/setting/setting.go

@ -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

Loading…
Cancel
Save