12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package conf
- import (
- beego "github.com/beego/beego/v2/server/web"
- )
- // Nats
- var NatsServer_Url, _ = beego.AppConfig.String("NatsServer_Url")
- var HTTPPort, _ = beego.AppConfig.String("HTTPPort")
- var AppName, _ = beego.AppConfig.String("appname")
- var RunMode, _ = beego.AppConfig.String("RunMode")
- var Version, _ = beego.AppConfig.String("Version")
- var Page_size = 10
- // Mysql
- 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")
- var MysqlServer_Debug = beego.AppConfig.DefaultBool("MysqlServer_Debug", true)
- // 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_Url, _ = beego.AppConfig.String("Qiniu_Url")
- var Qiniu_BUCKET, _ = beego.AppConfig.String("Qiniu_BUCKET")
- var OssQiniu = "https://coldoss.coldbaozhida.com"
- var Panel_url, _ = beego.AppConfig.String("Panel_url")
- var FilterExcludeURL, _ = beego.AppConfig.String("FilterExcludeURL")
- var FilterOnlyLoginCheckURL, _ = beego.AppConfig.String("FilterOnlyLoginCheckURL")
- var MqttIds, _ = beego.AppConfig.String("MqttIds")
- var MqttServer_id, _ = beego.AppConfig.String("MqttServer_id")
- var WarningRateExcludePid, _ = beego.AppConfig.String("WarningRateExcludePid")
- var Weixin_PwdKey, _ = beego.AppConfig.String("Weixin_PwdKey")
- var Weixin_Notify, _ = beego.AppConfig.String("Weixin_Notify")
- var UseNewWarningQuery, _ = beego.AppConfig.Bool("UseNewWarningQuery")
|