app.conf 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. appname = Cold_Api
  2. HTTPPort = 6200
  3. runmode = dev
  4. EnableDocs = true
  5. copyrequestbody = true
  6. Version = "/v3"
  7. # # Nats
  8. NatsServer_Url = "203.34.49.130:4222"
  9. # Mysql
  10. MysqlServer_UrlPort = "203.34.49.130:3306"
  11. MysqlServer_Database = "cold"
  12. MysqlServer_Username = "cold"
  13. MysqlServer_Password = "yjwyEckZS7rE5H"
  14. MysqlServer_MaxIdleConnections = 100
  15. MysqlServer_MaxOpenConnections = 200
  16. MysqlServer_Debug = true
  17. # Redis
  18. Redis_address = "203.34.49.130:6379"
  19. Redis_password = "redis_GGRi8f"
  20. Redis_dbNum = "1"
  21. # 静态资源
  22. Qiniu_AccessKey = "-8ezB_d-8-eUFTMvhOGbGzgeQRPeKQnaQ3DBcUxo"
  23. Qiniu_SecretKey = "KFhkYxTAJ2ZPN3ZS3euTsfWk8-C92rKgkhAMkDRN"
  24. Qiniu_BUCKET = "coldoss"
  25. Qiniu_Url = "https://coldoss.coldbaozhida.com/"
  26. # Panel
  27. Panel_url = "http://127.0.0.1:6204/Cold_Panel"
  28. # 不验证登录的接口
  29. FilterExcludeURL = /Login_verification,/Data/List,/WxPay/Notify,/Data/Company_key_Device_Sensor_List,/docking/Real_Data,/docking/Note_Data,/Company/Transport/List,/DeviceSensor/List_BySN
  30. # 只验证登录不验证权限的接口
  31. FilterOnlyLoginCheckURL = /Menu/List,/User/Info,/User/Home,/User/Post,/UpFileToken,/User/WxQRCode,/Company/Get,/DataSource,/Company/Bill_Excel,/WarningSend/List,/WxPay/Get_QRCode,/WxPay/GetOrderState,/WarningHandle/List,/DeviceWarning/List_Count
  32. MqttIds = tmqttjxit
  33. MqttServer_id = "tmqttjxit"
  34. Weixin_PwdKey = "7Nt9sJb1Xy0PoQrEl3Df5Zv2Cg6AhRkT"
  35. Weixin_Notify = ""
  36. # 日志配置
  37. # 0-控制台输出 1-文件输出 2-文件和控制台输出
  38. adapter_type = 0
  39. # 文件最多保存多少天
  40. maxdays = 7
  41. # 日志级别 (0-紧急 1-报警 2-严重错误 3-错误 4-警告 5-注意 6-信息 7-调试)
  42. level = 7
  43. # SQL日志级别 (1-静音 2-错误 3-警告 4-信息). 注意: sql日志只在level大于等于5级别才会输出。
  44. sqlloglevel = 4
  45. # 慢SQL阈值(毫秒)。慢SQL会在sqlloglevel大于等于3时输出。
  46. slow_threshold = 200
  47. # 每个文件保存的最大行数
  48. maxlines = 10000
  49. # 使用新的告警查询方式,修改为true后弃用设备报禁信息将在弃用菜单内才能查询
  50. UseNewWarningQuery = false