application-prod.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. spring:
  2. # redis 配置
  3. redis:
  4. # 地址
  5. host: 192.168.9.98
  6. # 端口,默认为6379
  7. port: 6379
  8. # 数据库索引
  9. database: 1
  10. # 密码
  11. password: ^YHN&UJM
  12. # 连接超时时间
  13. timeout: 10s
  14. lettuce:
  15. pool:
  16. # 连接池中的最小空闲连接
  17. min-idle: 0
  18. # 连接池中的最大空闲连接
  19. max-idle: 8
  20. # 连接池的最大数据库连接数
  21. max-active: 8
  22. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  23. max-wait: -1ms
  24. # 数据源配置
  25. datasource:
  26. type: com.alibaba.druid.pool.DruidDataSource
  27. driverClassName: com.mysql.cj.jdbc.Driver
  28. druid:
  29. # 主库数据源
  30. master:
  31. url: jdbc:mysql://localhost:3306/big_model?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  32. username: root
  33. password: Hongshan2024#longjiang%xinyi
  34. # 从库数据源
  35. slave:
  36. # 从数据源开关/默认关闭
  37. enabled: true
  38. driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
  39. url: jdbc:sqlserver://10.0.3.53:1433;SelectMethod=Cursor;DatabaseName=信义
  40. username: hongshan
  41. password: hongshan
  42. # 初始连接数
  43. initialSize: 5
  44. # 最小连接池数量
  45. minIdle: 10
  46. # 最大连接池数量
  47. maxActive: 20
  48. # 配置获取连接等待超时的时间
  49. maxWait: 60000
  50. # 配置连接超时时间
  51. connectTimeout: 30000
  52. # 配置网络超时时间
  53. socketTimeout: 60000
  54. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  55. timeBetweenEvictionRunsMillis: 60000
  56. # 配置一个连接在池中最小生存的时间,单位是毫秒
  57. minEvictableIdleTimeMillis: 300000
  58. # 配置一个连接在池中最大生存的时间,单位是毫秒
  59. maxEvictableIdleTimeMillis: 900000
  60. # 配置检测连接是否有效
  61. validationQuery: SELECT 1
  62. testWhileIdle: true
  63. testOnBorrow: false
  64. testOnReturn: false
  65. webStatFilter:
  66. enabled: true
  67. statViewServlet:
  68. enabled: true
  69. # 设置白名单,不填则允许所有访问
  70. allow:
  71. url-pattern: /druid/*
  72. # 控制台管理用户名和密码
  73. login-username: slibra
  74. login-password: 123456
  75. filter:
  76. stat:
  77. enabled: true
  78. # 慢SQL记录
  79. log-slow-sql: true
  80. slow-sql-millis: 1000
  81. merge-sql: true
  82. wall:
  83. config:
  84. multi-statement-allow: true
  85. application:
  86. ali-cloud:
  87. enable-sms: true
  88. qiYueSuoAccount:
  89. serverUrl: https://openapi.qiyuesuo.cn
  90. accessKey: njhjJYvh6B
  91. accessSecret: wdodHgMGea9FruNd0kqbGKvCleKS3U
  92. secretKey: kiU1m7YsnTqCVNgN
  93. hostPath: http://ruoweiedu.com:5156/api/
  94. bcosPath: http://ruoweiedu.com:5161/api/
  95. qysCallServer: https://beta.fuxicarbon.com/api/qys/permit/
  96. earnestPct: 0.01
  97. deposit: 0.01
  98. # wechatPay:
  99. # orderNotifyUrl: https://beta.fuxicarbon.com/api/wechat-pay-records/orderNotify
  100. # depositNotifyUrl: https://beta.fuxicarbon.com/api/wechat-pay-records/depositNotify
  101. #生产环境配置
  102. big-model:
  103. ip: 192.168.9.98
  104. port: 17070
  105. temperature: 0.7
  106. topP: 0.7
  107. log:
  108. logPath: /home/intelligent-voice/logs