普兆健康管家后端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

340 lines
12 KiB

9 months ago
10 months ago
9 months ago
10 months ago
10 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
  1. server:
  2. port: 8002
  3. undertow:
  4. # max-http-post-size: 10MB # 平替 tomcat server.tomcat.max-swallow-siz, undertow该值默认为-1
  5. worker-threads: 16 # 4核CPU标准配置
  6. buffers:
  7. websocket: 8192 # WebSocket缓冲 以字节为单位,这里设置为8 KB
  8. io: 16384 # IO操作缓冲 以字节为单位,这里设置为16 KB
  9. error:
  10. include-exception: true
  11. include-stacktrace: ALWAYS
  12. include-message: ALWAYS
  13. servlet:
  14. context-path: /health-admin
  15. compression:
  16. enabled: true
  17. min-response-size: 1024
  18. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  19. management:
  20. endpoints:
  21. web:
  22. exposure:
  23. include: metrics,jeecghttptrace
  24. spring:
  25. flyway:
  26. # 是否启用flyway
  27. enabled: true
  28. # 是否关闭要清除已有库下的表功能,生产环境必须为true,否则会删库,非常重要!!!
  29. clean-disabled: true
  30. servlet:
  31. multipart:
  32. max-file-size: 1024MB
  33. max-request-size: 1024MB
  34. mail:
  35. # 定时任务发送邮件
  36. timeJobSend: false
  37. host: smtp.163.com
  38. username: jeecgos@163.com
  39. password: ??
  40. properties:
  41. mail.smtp.timeout: 10000 # 连接超时(毫秒)
  42. mail.smtp.connectiontimeout: 10000 # 连接超时(毫秒)
  43. mail.smtp.writetimeout: 10000 # 写入超时(毫秒)
  44. mail.smtp.auth: true
  45. smtp.ssl.enable: true
  46. mail.debug: true # 启用调试模式(查看详细日志)
  47. ## quartz定时任务,采用数据库方式
  48. quartz:
  49. job-store-type: jdbc
  50. initialize-schema: embedded
  51. #定时任务启动开关,true-开 false-关
  52. auto-startup: true
  53. #延迟1秒启动定时任务
  54. startup-delay: 1s
  55. #启动时更新己存在的Job
  56. overwrite-existing-jobs: true
  57. properties:
  58. org:
  59. quartz:
  60. scheduler:
  61. instanceName: MyScheduler
  62. instanceId: AUTO
  63. jobStore:
  64. class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  65. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  66. tablePrefix: QRTZ_
  67. isClustered: true
  68. misfireThreshold: 12000
  69. clusterCheckinInterval: 15000
  70. threadPool:
  71. class: org.quartz.simpl.SimpleThreadPool
  72. threadCount: 10
  73. threadPriority: 5
  74. threadsInheritContextClassLoaderOfInitializingThread: true
  75. #json 时间戳统一转换
  76. jackson:
  77. date-format: yyyy-MM-dd HH:mm:ss
  78. time-zone: GMT+8
  79. jpa:
  80. open-in-view: false
  81. aop:
  82. proxy-target-class: true
  83. #配置freemarker
  84. freemarker:
  85. # 设置模板后缀名
  86. suffix: .ftl
  87. # 设置文档类型
  88. content-type: text/html
  89. # 设置页面编码格式
  90. charset: UTF-8
  91. # 设置页面缓存
  92. cache: false
  93. prefer-file-system-access: false
  94. # 设置ftl文件路径
  95. template-loader-path:
  96. - classpath:/templates
  97. template_update_delay: 0
  98. # 设置静态文件路径,js,css等
  99. mvc:
  100. static-path-pattern: /**
  101. #Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
  102. pathmatch:
  103. matching-strategy: ant_path_matcher
  104. resource:
  105. static-locations: classpath:/static/,classpath:/public/
  106. autoconfigure:
  107. exclude:
  108. - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  109. - org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration
  110. datasource:
  111. druid:
  112. stat-view-servlet:
  113. enabled: true
  114. loginUsername: admin
  115. loginPassword: 123456
  116. allow:
  117. web-stat-filter:
  118. enabled: true
  119. dynamic:
  120. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  121. # 连接池的配置信息
  122. # 初始化大小,最小,最大
  123. initial-size: 5
  124. min-idle: 5
  125. maxActive: 1000
  126. # 配置获取连接等待超时的时间
  127. maxWait: 60000
  128. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  129. timeBetweenEvictionRunsMillis: 60000
  130. # 配置一个连接在池中最小生存的时间,单位是毫秒
  131. minEvictableIdleTimeMillis: 300000
  132. validationQuery: SELECT 1
  133. testWhileIdle: true
  134. testOnBorrow: false
  135. testOnReturn: false
  136. # 打开PSCache,并且指定每个连接上PSCache的大小
  137. poolPreparedStatements: true
  138. maxPoolPreparedStatementPerConnectionSize: 20
  139. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  140. filters: stat,wall,slf4j
  141. # 允许SELECT语句的WHERE子句是一个永真条件
  142. wall:
  143. selectWhereAlwayTrueCheck: false
  144. # 打开mergeSql功能;慢SQL记录
  145. stat:
  146. merge-sql: false
  147. slow-sql-millis: 5000
  148. datasource:
  149. master:
  150. url: jdbc:mysql://110.40.223.77:3306/health?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  151. username: root
  152. password: r=lRyE-l
  153. driver-class-name: com.mysql.cj.jdbc.Driver
  154. # 多数据源配置
  155. #multi-datasource1:
  156. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  157. #username: root
  158. #password: root
  159. #driver-class-name: com.mysql.cj.jdbc.Driver
  160. #redis 配置
  161. redis:
  162. database: 1
  163. host: 110.40.223.77
  164. port: 6379
  165. password: 'Abc.123456'
  166. #mybatis plus 设置
  167. mybatis-plus:
  168. mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml
  169. global-config:
  170. # 关闭MP3.0自带的banner
  171. banner: false
  172. db-config:
  173. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  174. id-type: ASSIGN_ID
  175. # 默认数据库表下划线命名
  176. table-underline: true
  177. configuration:
  178. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  179. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  180. # 返回类型为Map,显示null对应的字段
  181. call-setters-on-nulls: true
  182. #jeecg专用配置
  183. minidao:
  184. base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
  185. jeecg:
  186. # AI集成
  187. ai-chat:
  188. enabled: true
  189. model: deepseek-chat
  190. apiKey: sk-6ad421d712724dda821c19cfe7d6c1e8
  191. apiHost: https://api.deepseek.com/v1
  192. timeout: 60
  193. # AIRag向量库
  194. ai-rag:
  195. embed-store:
  196. host: 127.0.0.1
  197. port: 5432
  198. database: postgres
  199. user: postgres
  200. password: postgres
  201. table: embeddings
  202. # 平台上线安全配置
  203. firewall:
  204. # 数据源安全 (开启后,Online报表和图表的数据源为必填)
  205. dataSourceSafe: false
  206. # 低代码模式(dev:开发模式,prod:发布模式——关闭所有在线开发配置能力)
  207. lowCodeMode: dev
  208. # 签名密钥串(前后端要一致,正式发布请自行修改)
  209. signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
  210. #签名拦截接口
  211. signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys,/sys/sendChangePwdSms,/sys/user/sendChangePhoneSms,/sys/sms,/desform/api/sendVerifyCode
  212. # 本地:local、Minio:minio、阿里云:alioss
  213. uploadType: alioss
  214. # 前端访问地址
  215. domainUrl:
  216. pc: http://localhost:3100
  217. app: http://localhost:8051
  218. path:
  219. #文件上传根目录 设置
  220. upload: /opt/upFiles
  221. #webapp文件路径
  222. webapp: /opt/webapp
  223. shiro:
  224. excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**
  225. #阿里云oss存储和大鱼短信秘钥配置
  226. oss:
  227. accessKey: LTAI5tRbkjEJmdibzfCT8ymy
  228. secretKey: gE6BnsfaEGk23Zv2lOUvkvaWwhS6BV
  229. endpoint: oss-cn-shanghai.aliyuncs.com
  230. bucketName: petualmedical
  231. # 短信模板
  232. sms-template:
  233. # 签名
  234. signature:
  235. # 模板code
  236. templateCode:
  237. # 登录短信、忘记密码模板编码
  238. SMS_175435174:
  239. # 修改密码短信模板编码
  240. SMS_465391221:
  241. # 注册账号短信模板编码
  242. SMS_175430166:
  243. # 在线预览文件服务器地址配置
  244. file-view-domain: http://fileview.jeecg.com
  245. # minio文件上传
  246. minio:
  247. minio_url: http://minio.jeecg.com
  248. minio_name: ??
  249. minio_pass: ??
  250. bucketName: otatest
  251. #大屏报表参数设置
  252. jmreport:
  253. #多租户模式,默认值为空(created:按照创建人隔离、tenant:按照租户隔离) (v1.6.2+ 新增)
  254. saasMode:
  255. # 平台上线安全配置(v1.6.2+ 新增)
  256. firewall:
  257. # 数据源安全 (开启后,不允许使用平台数据源、SQL解析加签并且不允许查询数据库)
  258. dataSourceSafe: false
  259. # 低代码开发模式(dev:开发模式,prod:发布模式—关闭在线报表设计功能,分配角色admin、lowdeveloper可以放开限制)
  260. lowCodeMode: dev
  261. #xxl-job配置
  262. xxljob:
  263. enabled: false
  264. adminAddresses: http://127.0.0.1:9080/xxl-job-admin
  265. appname: ${spring.application.name}
  266. accessToken: ''
  267. address: 127.0.0.1:30007
  268. ip: 127.0.0.1
  269. port: 30007
  270. logPath: logs/jeecg/job/jobhandler/
  271. logRetentionDays: 30
  272. #分布式锁配置
  273. redisson:
  274. address: 127.0.0.1:6379
  275. password:
  276. type: STANDALONE
  277. enabled: true
  278. # 百度开放API配置
  279. baidu-api:
  280. app-id: ??
  281. api-key: ??
  282. secret-key: ??
  283. #cas单点登录
  284. cas:
  285. prefixUrl: http://cas.example.org:8443/cas
  286. #Mybatis输出sql日志
  287. logging:
  288. level:
  289. org.flywaydb: debug
  290. org.jeecg.modules.system.mapper: info
  291. #swagger
  292. knife4j:
  293. #开启增强配置
  294. enable: true
  295. #开启生产环境屏蔽
  296. production: false
  297. basic:
  298. enable: false
  299. username: jeecg
  300. password: jeecg1314
  301. #第三方登录
  302. justauth:
  303. enabled: true
  304. type:
  305. GITHUB:
  306. client-id: ??
  307. client-secret: ??
  308. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  309. WECHAT_ENTERPRISE:
  310. client-id: ??
  311. client-secret: ??
  312. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  313. agent-id: ??
  314. DINGTALK:
  315. client-id: ??
  316. client-secret: ??
  317. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  318. WECHAT_OPEN:
  319. client-id: ??
  320. client-secret: ??
  321. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  322. cache:
  323. type: default
  324. prefix: 'demo::'
  325. timeout: 1h
  326. ##配置微信##爱简收旧衣按件回收小程序
  327. wechat:
  328. mpAppId: wx8ff2ab9559aa6387 # 微信小程序appid
  329. mpAppSecret: 19427a20219ab25b187e4179aea3a5f4 # 微信小程序密钥
  330. merchantId: 1711030469 # 商户号
  331. privateKeyPath: jeecg-system-start/src/main/resources/apiclient_key.pem #本地私钥路径
  332. publicKeyPath: jeecg-system-start/src/main/resources/pub_key.pem #本地公钥路径
  333. # privateKeyPath: /data/app-test/hly/cerFile/apiclient_key.pem #线上私钥路径
  334. # publicKeyPath: /data/app-test/hly/cerFile/pub_key.pem #线上公钥路径
  335. publicKeyId: PUB_KEY_ID_0117018416542025022100395100001649 #公钥
  336. merchantSerialNumber: 4B672D1BCB20B22081FD6C5ECAA7C1277AF1B772 # 商户API证书序列号
  337. apiV3Key: 0fdb77429ffdf206c151af76a663041c # 商户APIV3密钥
  338. refundNotifyUrl: # 退款通知地址(正式环境)