tech(dataproxy): moves cfg to [dataproxy]

This commit is contained in:
bergquist
2017-01-16 12:43:59 +01:00
parent d4a96b9741
commit 06440ef57b
3 changed files with 18 additions and 4 deletions
+5 -1
View File
@@ -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()