1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- package conf
- import (
- beego "github.com/beego/beego/v2/server/web"
- )
- // Nats
- var NatsServer_Url, _ = beego.AppConfig.String("NatsServer_Url")
- var NatsForbidden = beego.AppConfig.DefaultBool("NatsForbidden", false)
- var HTTPPort, _ = beego.AppConfig.String("HTTPPort")
- var AppName, _ = beego.AppConfig.String("appname")
- var RunMode, _ = beego.AppConfig.String("runmode")
- var Page_size = 10
- // Mysql
- var Local_AliasName, _ = beego.AppConfig.String("Local_AliasName")
- var MysqlServer_UrlPort, _ = beego.AppConfig.String("MysqlServer_UrlPort")
- var MysqlServer_Database, _ = beego.AppConfig.String("MysqlServer_Database")
- var MysqlServer_Username, _ = beego.AppConfig.String("MysqlServer_Username")
- var MysqlServer_Password, _ = beego.AppConfig.String("MysqlServer_Password")
- var MysqlServer_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlServer_MaxIdleConnections")
- var MysqlServer_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlServer_MaxOpenConnections")
- // Mysql 线上
- var Server_AliasName, _ = beego.AppConfig.String("Server_AliasName")
- var MysqlServer2_UrlPort, _ = beego.AppConfig.String("MysqlServer2_UrlPort")
- var MysqlServer2_Database, _ = beego.AppConfig.String("MysqlServer2_Database")
- var MysqlServer2_Username, _ = beego.AppConfig.String("MysqlServer2_Username")
- var MysqlServer2_Password, _ = beego.AppConfig.String("MysqlServer2_Password")
- var MysqlServer2_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlServer2_MaxIdleConnections")
- var MysqlServer2_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlServer2_MaxOpenConnections")
- var Verify1_AliasName, _ = beego.AppConfig.String("Verify1_AliasName")
- var MysqlVerify_UrlPort, _ = beego.AppConfig.String("MysqlVerify_UrlPort")
- var MysqlVerify_Database, _ = beego.AppConfig.String("MysqlVerify_Database")
- var MysqlVerify_Username, _ = beego.AppConfig.String("MysqlVerify_Username")
- var MysqlVerify_Password, _ = beego.AppConfig.String("MysqlVerify_Password")
- var MysqlVerify_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlVerify_MaxIdleConnections")
- var MysqlVerify_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlVerify_MaxOpenConnections")
- var Sql_Temp_Dir, _ = beego.AppConfig.String("Sql_Temp_Dir")
- // Redis
- var Redis_address, _ = beego.AppConfig.String("Redis_address")
- var Redis_password, _ = beego.AppConfig.String("Redis_password")
- var Redis_dbNum, _ = beego.AppConfig.String("Redis_dbNum")
- // Qiniu
- var Qiniu_AccessKey, _ = beego.AppConfig.String("Qiniu_AccessKey")
- var Qiniu_SecretKey, _ = beego.AppConfig.String("Qiniu_SecretKey")
- var Qiniu_BUCKET, _ = beego.AppConfig.String("Qiniu_BUCKET")
- var OssQiniu = "https://bzdcoldverifyoss.baozhida.cn"
- var Oss, _ = beego.AppConfig.String("Oss")
- var Oss_file, _ = beego.AppConfig.String("Oss_file")
|