mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(dataproxy): moves cfg to [dataproxy]
This commit is contained in:
@@ -492,7 +492,7 @@ func NewConfigContext(args *CommandLineArgs) error {
|
||||
HttpAddr = server.Key("http_addr").MustString(DEFAULT_HTTP_ADDR)
|
||||
HttpPort = server.Key("http_port").MustString("3000")
|
||||
RouterLogging = server.Key("router_logging").MustBool(false)
|
||||
DataProxyLogging = server.Key("data_proxy_logging").MustBool(false)
|
||||
|
||||
EnableGzip = server.Key("enable_gzip").MustBool(false)
|
||||
EnforceDomain = server.Key("enforce_domain").MustBool(false)
|
||||
StaticRootPath = makeAbsolute(server.Key("static_root_path").String(), HomePath)
|
||||
@@ -501,6 +501,10 @@ func NewConfigContext(args *CommandLineArgs) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// read data proxy settings
|
||||
dataproxy := Cfg.Section("dataproxy")
|
||||
DataProxyLogging = dataproxy.Key("logging").MustBool(false)
|
||||
|
||||
// read security settings
|
||||
security := Cfg.Section("security")
|
||||
SecretKey = security.Key("secret_key").String()
|
||||
|
||||
Reference in New Issue
Block a user