application.yml 5.8 KB

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