config.go 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package conf
  2. import (
  3. beego "github.com/beego/beego/v2/server/web"
  4. )
  5. // Nats
  6. var NatsServer_Url, _ = beego.AppConfig.String("NatsServer_Url")
  7. var HTTPPort, _ = beego.AppConfig.String("HTTPPort")
  8. var AppName, _ = beego.AppConfig.String("appname")
  9. var RunMode, _ = beego.AppConfig.String("RunMode")
  10. var Version, _ = beego.AppConfig.String("Version")
  11. var Page_size = 10
  12. // Mysql
  13. var MysqlServer_UrlPort, _ = beego.AppConfig.String("MysqlServer_UrlPort")
  14. var MysqlServer_Database, _ = beego.AppConfig.String("MysqlServer_Database")
  15. var MysqlServer_Username, _ = beego.AppConfig.String("MysqlServer_Username")
  16. var MysqlServer_Password, _ = beego.AppConfig.String("MysqlServer_Password")
  17. var MysqlServer_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlServer_MaxIdleConnections")
  18. var MysqlServer_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlServer_MaxOpenConnections")
  19. var MysqlServer_Debug = beego.AppConfig.DefaultBool("MysqlServer_Debug", true)
  20. // Redis
  21. var Redis_address, _ = beego.AppConfig.String("Redis_address")
  22. var Redis_password, _ = beego.AppConfig.String("Redis_password")
  23. var Redis_dbNum, _ = beego.AppConfig.String("Redis_dbNum")
  24. // Qiniu
  25. var Qiniu_AccessKey, _ = beego.AppConfig.String("Qiniu_AccessKey")
  26. var Qiniu_SecretKey, _ = beego.AppConfig.String("Qiniu_SecretKey")
  27. var Qiniu_Url, _ = beego.AppConfig.String("Qiniu_Url")
  28. var Qiniu_BUCKET, _ = beego.AppConfig.String("Qiniu_BUCKET")
  29. var OssQiniu = "https://coldoss.coldbaozhida.com"
  30. var Panel_url, _ = beego.AppConfig.String("Panel_url")
  31. var FilterExcludeURL, _ = beego.AppConfig.String("FilterExcludeURL")
  32. var FilterOnlyLoginCheckURL, _ = beego.AppConfig.String("FilterOnlyLoginCheckURL")
  33. var MqttIds, _ = beego.AppConfig.String("MqttIds")
  34. var MqttServer_id, _ = beego.AppConfig.String("MqttServer_id")
  35. var WarningRateExcludePid, _ = beego.AppConfig.String("WarningRateExcludePid")
  36. var Weixin_PwdKey, _ = beego.AppConfig.String("Weixin_PwdKey")
  37. var Weixin_Notify, _ = beego.AppConfig.String("Weixin_Notify")
  38. var UseNewWarningQuery, _ = beego.AppConfig.Bool("UseNewWarningQuery")