config.go 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 Local_AliasName, _ = beego.AppConfig.String("Local_AliasName")
  14. var MysqlServer_UrlPort, _ = beego.AppConfig.String("MysqlServer_UrlPort")
  15. var MysqlServer_Database, _ = beego.AppConfig.String("MysqlServer_Database")
  16. var MysqlServer_Username, _ = beego.AppConfig.String("MysqlServer_Username")
  17. var MysqlServer_Password, _ = beego.AppConfig.String("MysqlServer_Password")
  18. var MysqlServer_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlServer_MaxIdleConnections")
  19. var MysqlServer_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlServer_MaxOpenConnections")
  20. // Mysql 线上
  21. var Server_AliasName, _ = beego.AppConfig.String("Server_AliasName")
  22. var MysqlServer2_UrlPort, _ = beego.AppConfig.String("MysqlServer2_UrlPort")
  23. var MysqlServer2_Database, _ = beego.AppConfig.String("MysqlServer2_Database")
  24. var MysqlServer2_Username, _ = beego.AppConfig.String("MysqlServer2_Username")
  25. var MysqlServer2_Password, _ = beego.AppConfig.String("MysqlServer2_Password")
  26. var MysqlServer2_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlServer2_MaxIdleConnections")
  27. var MysqlServer2_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlServer2_MaxOpenConnections")
  28. var Verify1_AliasName, _ = beego.AppConfig.String("Verify1_AliasName")
  29. var MysqlVerify_UrlPort, _ = beego.AppConfig.String("MysqlVerify_UrlPort")
  30. var MysqlVerify_Database, _ = beego.AppConfig.String("MysqlVerify_Database")
  31. var MysqlVerify_Username, _ = beego.AppConfig.String("MysqlVerify_Username")
  32. var MysqlVerify_Password, _ = beego.AppConfig.String("MysqlVerify_Password")
  33. var MysqlVerify_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlVerify_MaxIdleConnections")
  34. var MysqlVerify_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlVerify_MaxOpenConnections")
  35. var Sql_Temp_Dir, _ = beego.AppConfig.String("Sql_Temp_Dir")
  36. // Redis
  37. var Redis_address, _ = beego.AppConfig.String("Redis_address")
  38. var Redis_password, _ = beego.AppConfig.String("Redis_password")
  39. var Redis_dbNum, _ = beego.AppConfig.String("Redis_dbNum")
  40. // Qiniu
  41. var Qiniu_AccessKey, _ = beego.AppConfig.String("Qiniu_AccessKey")
  42. var Qiniu_SecretKey, _ = beego.AppConfig.String("Qiniu_SecretKey")
  43. var Qiniu_BUCKET, _ = beego.AppConfig.String("Qiniu_BUCKET")
  44. var OssQiniu = "https://bzdcoldverifyoss.baozhida.cn"
  45. var Oss, _ = beego.AppConfig.String("Oss")
  46. var Oss_file, _ = beego.AppConfig.String("Oss_file")