mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Server: Add protocol to Cfg (#27071)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
3b248fccc8
commit
1717476984
@ -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…
Reference in New Issue
Block a user