Commit e619e1e2 authored by ligaishun's avatar ligaishun

Update setting.go

parent 32fb5fa4
......@@ -67,6 +67,18 @@ type block struct {
var BlockSetting = &block{}
type Chain33_pai struct {
Path string
Scripts string
SS string
SSH string
Keygen string
NetStat string
}
var Chain33Pai =&Chain33_pai{}
var cfg *ini.File
// Setup initialize the configuration instance
......@@ -82,6 +94,7 @@ func Setup() {
mapTo("database", DatabaseSetting)
mapTo("redis", RedisSetting)
mapTo("block",BlockSetting)
mapTo("chain33-pai",Chain33Pai)
AppSetting.ImageMaxSize = AppSetting.ImageMaxSize * 1024 * 1024
ServerSetting.ReadTimeout = ServerSetting.ReadTimeout * time.Second
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment