config.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 NatsForbidden = beego.AppConfig.DefaultBool("NatsForbidden", false)
  8. var HTTPPort, _ = beego.AppConfig.String("HTTPPort")
  9. var AppName, _ = beego.AppConfig.String("appname")
  10. var RunMode, _ = beego.AppConfig.String("runmode")
  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. // Redis
  20. var Redis_address, _ = beego.AppConfig.String("Redis_address")
  21. var Redis_password, _ = beego.AppConfig.String("Redis_password")
  22. var Redis_dbNum, _ = beego.AppConfig.String("Redis_dbNum")
  23. // Qiniu
  24. var Qiniu_AccessKey, _ = beego.AppConfig.String("Qiniu_AccessKey")
  25. var Qiniu_SecretKey, _ = beego.AppConfig.String("Qiniu_SecretKey")
  26. var Qiniu_BUCKET, _ = beego.AppConfig.String("Qiniu_BUCKET")
  27. var OssQiniu = "https://bzdcoldverifyoss.baozhida.cn"
  28. var Oss, _ = beego.AppConfig.String("Oss")
  29. var Oss_file, _ = beego.AppConfig.String("Oss_file")
  30. // 微信消息群通知
  31. var WechatNews_GroupName, _ = beego.AppConfig.String("WechatNews_GroupName")
  32. var WechatNews_Url, _ = beego.AppConfig.String("WechatNews_Url")