application-dev.yml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # 端口
  2. server:
  3. port: 8099
  4. servlet:
  5. context-path: /pro
  6. spring:
  7. # 数据源配置
  8. datasource:
  9. type: com.alibaba.druid.pool.DruidDataSource
  10. url: jdbc:mysql://127.0.0.1:3306/smart_face?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8
  11. username: root
  12. password: 123456
  13. # 是否打开sql监控台 (生产环境请务必关闭此选项)
  14. druid:
  15. stat-view-servlet:
  16. enabled: true
  17. web-stat-filter:
  18. enabled: true
  19. filter:
  20. config:
  21. enabled: true
  22. # redis配置
  23. redis:
  24. # Redis数据库索引(默认为0)
  25. database: 1
  26. # Redis服务器地址
  27. host: 127.0.0.1
  28. # Redis服务器连接端口
  29. port: 6379
  30. # Redis服务器连接密码(默认为空)
  31. # password:
  32. # 连接超时时间(毫秒)
  33. timeout: 1000ms
  34. lettuce:
  35. pool:
  36. # 连接池最大连接数
  37. max-active: 200
  38. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  39. max-wait: -1ms
  40. # 连接池中的最大空闲连接
  41. max-idle: 10
  42. # 连接池中的最小空闲连接
  43. min-idle: 0
  44. # 项目自定义配置
  45. myconfig:
  46. # 本项目部署到的服务器域名(文件上传等等模块 要用到)
  47. domain: http://192.168.3.27:8099/pro
  48. ip: 192.168.3.27
  49. net-ip: 192.168.3.27
  50. heart-port: 9999
  51. command-port: 8888
  52. command-prefix: "command:"
  53. heart-prefix: "heart:"
  54. gate-port: 8131
  55. limit-user-count: 45000
  56. wx:
  57. enable: true
  58. app-id: wxd40a34141872bf0c
  59. app-secret: 2e6a69fab1fbab60369ebd21b0882f3e
  60. access-token-key: wechat:base_token_key
  61. js-api-ticket-key: wechat:jsapi_ticket_key
  62. access-token-url: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${wx.app-id}&secret=${wx.app-secret}
  63. auth-login-url: https://open.weixin.qq.com/connect/oauth2/authorize?appid=${wx.app-id}&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect
  64. js-api-token-url: https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi
  65. openid-url: https://api.weixin.qq.com/sns/oauth2/access_token?appid=${wx.app-id}&secret=${wx.app-secret}&code=CODE&grant_type=authorization_code
  66. send-msg-url: https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN
  67. domain: http://127.0.0.1:8080/h5
  68. report-detail: ${wx.domain}/pages/detail/report-detail
  69. temperature-error-template: WtTlUMCtJp6dSPXLJg_RdsmX4811aDkEkHuX0Txfgfg
  70. health-status-template: IEzVk2HCvctwXZzaGaElWQpRskolYlZSahTZXbJhuVM