|
@@ -77,6 +77,7 @@ var (
|
|
|
SocketPath string
|
|
SocketPath string
|
|
|
RouterLogging bool
|
|
RouterLogging bool
|
|
|
DataProxyLogging bool
|
|
DataProxyLogging bool
|
|
|
|
|
+ DataProxyTimeout int
|
|
|
StaticRootPath string
|
|
StaticRootPath string
|
|
|
EnableGzip bool
|
|
EnableGzip bool
|
|
|
EnforceDomain bool
|
|
EnforceDomain bool
|
|
@@ -597,6 +598,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
|
|
|
// read data proxy settings
|
|
// read data proxy settings
|
|
|
dataproxy := iniFile.Section("dataproxy")
|
|
dataproxy := iniFile.Section("dataproxy")
|
|
|
DataProxyLogging = dataproxy.Key("logging").MustBool(false)
|
|
DataProxyLogging = dataproxy.Key("logging").MustBool(false)
|
|
|
|
|
+ DataProxyTimeout = dataproxy.Key("timeout").MustInt(30)
|
|
|
|
|
|
|
|
// read security settings
|
|
// read security settings
|
|
|
security := iniFile.Section("security")
|
|
security := iniFile.Section("security")
|