application.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. server:
  2. shutdown: immediate
  3. port: 8083
  4. servlet:
  5. context-path: /api
  6. spring:
  7. integration:
  8. mqtt:
  9. url: tcp://192.168.100.102:1883 # MQTT服务器地址
  10. username: admin # 可选:MQTT用户名
  11. password: tr123456. # 可选:MQTT密码
  12. subClientId: spring-integration-mqtt-client # 客户端ID(保证唯一)
  13. pubClientId: spring-integration-mqtt-client
  14. subTopic: device/data/+ # 订阅的主题(支持多主题,用逗号分隔)
  15. # qos: 1 # QoS级别(0/1/2)
  16. lifecycle:
  17. timeout-per-shutdown-phase: 10s
  18. datasource:
  19. type: com.zaxxer.hikari.HikariDataSource
  20. driverClassName: org.postgresql.Driver
  21. url: jdbc:postgresql://172.31.18.78:5432/phototherapy?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&useInformationSchema=true&stringtype=unspecified
  22. username: postgres
  23. password: Qwepostgres
  24. hikari:
  25. minimum-idle: 5
  26. maximum-pool-size: 20
  27. connection-timeout: 5000
  28. idle-timeout: 300000
  29. max-lifetime: 600000
  30. pool-name: HikariPool-1
  31. data:
  32. redis:
  33. # 地址
  34. host: 172.31.18.78
  35. # 端口,默认为6379
  36. port: 6379
  37. # 数据库索引
  38. database: 0
  39. # 密码
  40. password: root
  41. # 连接超时时间
  42. timeout: 30s
  43. # 客户端名称
  44. client-name:
  45. lettuce:
  46. pool:
  47. # 连接池中的最小空闲连接
  48. min-idle: 16
  49. # 连接池中的最大空闲连接
  50. max-idle: 16
  51. # 连接池的最大数据库连接数
  52. max-active: 16
  53. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  54. max-wait: -1ms
  55. # 关闭超时时间
  56. shutdown-timeout: 100ms
  57. cache:
  58. type: redis
  59. redis:
  60. # 缓存过期时间(7天)
  61. time-to-live: 604800000
  62. # 缓存键前缀
  63. key-prefix: cache
  64. # 是否使用键前缀
  65. use-key-prefix: true
  66. # 是否缓存空值
  67. cache-null-values: true
  68. profiles:
  69. active: flyway,sys
  70. # MQTT配置(spring-integration-mqtt专用)
  71. #mybatis配置
  72. mybatis-plus:
  73. mapper-locations: classpath*:com/gitee/sunchenbin/mybatis/actable/mapping/*/*.xml,classpath*:mapper/*/*.xml
  74. configuration:
  75. log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  76. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  77. global-config:
  78. db-config:
  79. logic-delete-value: 1
  80. logic-delete-field: isDeleted
  81. logic-not-delete-value: 0
  82. langchain4j:
  83. open-ai:
  84. chat-model:
  85. api-key: "sk-2f8229627f104a18a1fb90c98e9ea48f" # 替换为您的DeepSeek API密钥
  86. model-name: "deepseek-chat" # 使用DeepSeek模型名称
  87. base-url: "https://api.deepseek.com/v1" # 添加DeepSeek API的基础URL
  88. log-requests: true
  89. log-responses: true
  90. streaming-chat-model:
  91. api-key: "sk-2f8229627f104a18a1fb90c98e9ea48f" # 替换为您的DeepSeek API密钥
  92. model-name: "deepseek-chat" # 使用DeepSeek模型名称
  93. base-url: "https://api.deepseek.com/v1" # 添加DeepSeek API的基础URL
  94. log-requests: true
  95. log-responses: true
  96. tr:
  97. storage:
  98. previewUrl: https://exam.tuoren.com/onlinePreview?url=
  99. satoken:
  100. enable: true
  101. ignore-urls:
  102. - /error
  103. - /actuator/**
  104. - /druid/**
  105. - /*.html
  106. - /**/*.html
  107. - /swagger-resources/**
  108. - /swagger-ui/**
  109. - /v3/**
  110. - /webjars/**
  111. - /v3/api-docs/**
  112. tenant:
  113. ignore-tables:
  114. - gen_config
  115. - gen_basic
  116. - sys_menu
  117. - sys_role_menu
  118. - sys_dict
  119. - sys_dict_item
  120. - sys_user_position
  121. # 租户模块
  122. - sys_tenant
  123. - sys_tenant_package
  124. - sys_tenant_package_menu
  125. - sys_user_role
  126. - sys_portal_menu
  127. - sys_user_portal
  128. # 短信模块
  129. - sys_sms_temp
  130. - sys_sms_channel
  131. - sys_sms_log
  132. # 编号策略
  133. - sys_numbering_strategy
  134. # 任务调度模块
  135. - sys_job
  136. - sys_job_log
  137. # 存储模块
  138. - sys_storage_config
  139. - sys_storage_file
  140. # 导入导出模块
  141. - sys_export_sheet
  142. - sys_export_row
  143. enable: false
  144. sa-token:
  145. is-read-header: true
  146. # token名称 (同时也是cookie名称)
  147. token-name: Authorization
  148. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  149. is-concurrent: true
  150. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  151. is-share: false
  152. # 是否打开续签
  153. auto-renew: true
  154. # 是否输出操作日志
  155. is-log: false
  156. # 同一账号登录数量不做限制
  157. max-login-count: -1
  158. timeout: 86400
  159. logging:
  160. config: classpath:log4j2.xml
  161. springdoc:
  162. swagger-ui:
  163. path: /swagger-ui.html
  164. group-configs:
  165. - group: 'sys'
  166. display-name: 系统管理
  167. packages-to-scan:
  168. - cn.tr.module.sys
  169. - cn.tr.module.excel
  170. - cn.tr.module.gen.modular.basic.controller
  171. - group: 'phototherapy'
  172. display-name: 平台管理端
  173. packages-to-scan:
  174. - cn.tr.module.phototherapy
  175. - group: 'client'
  176. display-name: 平台用户端
  177. packages-to-scan:
  178. - cn.tr.module.client
  179. show-actuator: true
  180. api-docs:
  181. enabled: true
  182. path: /v3/api-docs
  183. knife4j:
  184. setting:
  185. enable-footer: false
  186. enable-footer-custom: true
  187. footer-custom-content: Apache License 2.0 | Copyright 2019-[驼人控股集团](https://www.tuoren.com/about/index.html)
  188. enable-response-code: false
  189. third:
  190. kuaishou:
  191. app-id: ks713539069371564207
  192. app-secret: ikz830R8InSkAGmY3xgvIA
  193. redirect-uri: https://www.dcliu.xyz/api/third/kuaiShou/callback
  194. xhs:
  195. app-id: red.lf8Vk0PBvpjfW7Sr
  196. app-secret: de1f81769ac5449cbe63b473bd733b40