application-prod.yml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. server:
  2. port: 8080
  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: /jeecg-boot
  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: 10MB
  33. max-request-size: 10MB
  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. rabbitmq:
  48. host: 47.109.18.141
  49. port: 5672
  50. username: admin
  51. password: admin123
  52. listener:
  53. simple:
  54. acknowledge-mode: manual # 手动确认
  55. concurrency: 5
  56. prefetch: 1000
  57. ## quartz定时任务,采用数据库方式
  58. quartz:
  59. job-store-type: jdbc
  60. initialize-schema: embedded
  61. #定时任务启动开关,true-开 false-关
  62. auto-startup: true
  63. #延迟1秒启动定时任务
  64. startup-delay: 1s
  65. #启动时更新己存在的Job
  66. overwrite-existing-jobs: true
  67. properties:
  68. org:
  69. quartz:
  70. scheduler:
  71. instanceName: MyScheduler
  72. instanceId: AUTO
  73. jobStore:
  74. class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  75. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  76. tablePrefix: QRTZ_
  77. isClustered: true
  78. misfireThreshold: 12000
  79. clusterCheckinInterval: 15000
  80. threadPool:
  81. class: org.quartz.simpl.SimpleThreadPool
  82. threadCount: 10
  83. threadPriority: 5
  84. threadsInheritContextClassLoaderOfInitializingThread: true
  85. #json 时间戳统一转换
  86. jackson:
  87. date-format: yyyy-MM-dd HH:mm:ss
  88. time-zone: GMT+8
  89. jpa:
  90. open-in-view: false
  91. aop:
  92. proxy-target-class: true
  93. #配置freemarker
  94. freemarker:
  95. # 设置模板后缀名
  96. suffix: .ftl
  97. # 设置文档类型
  98. content-type: text/html
  99. # 设置页面编码格式
  100. charset: UTF-8
  101. # 设置页面缓存
  102. cache: false
  103. prefer-file-system-access: false
  104. # 设置ftl文件路径
  105. template-loader-path:
  106. - classpath:/templates
  107. template_update_delay: 0
  108. # 设置静态文件路径,js,css等
  109. mvc:
  110. static-path-pattern: /**
  111. #Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
  112. pathmatch:
  113. matching-strategy: ant_path_matcher
  114. resource:
  115. static-locations: classpath:/static/,classpath:/public/
  116. autoconfigure:
  117. exclude:
  118. - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  119. - org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration
  120. datasource:
  121. druid:
  122. stat-view-servlet:
  123. enabled: true
  124. loginUsername: admin
  125. loginPassword: 123456
  126. allow:
  127. web-stat-filter:
  128. enabled: true
  129. dynamic:
  130. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  131. # 连接池的配置信息
  132. # 初始化大小,最小,最大
  133. initial-size: 5
  134. min-idle: 5
  135. maxActive: 1000
  136. # 配置获取连接等待超时的时间
  137. maxWait: 60000
  138. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  139. timeBetweenEvictionRunsMillis: 60000
  140. # 配置一个连接在池中最小生存的时间,单位是毫秒
  141. minEvictableIdleTimeMillis: 300000
  142. validationQuery: SELECT 1
  143. testWhileIdle: true
  144. testOnBorrow: false
  145. testOnReturn: false
  146. # 打开PSCache,并且指定每个连接上PSCache的大小
  147. poolPreparedStatements: true
  148. maxPoolPreparedStatementPerConnectionSize: 20
  149. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  150. filters: stat,wall,slf4j
  151. # 允许SELECT语句的WHERE子句是一个永真条件
  152. wall:
  153. selectWhereAlwayTrueCheck: false
  154. # 打开mergeSql功能;慢SQL记录
  155. stat:
  156. merge-sql: false
  157. slow-sql-millis: 5000
  158. datasource:
  159. master:
  160. # url: jdbc:mysql://192.168.110.241:3306/national_motion?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  161. # username: root
  162. # password: c7ix0bJv2GvyhbkRw6
  163. url: jdbc:mysql://rm-bp15g68z8j527q9n9xo.mysql.rds.aliyuncs.com:3306/national_motion?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  164. username: root
  165. password: BXyzm3RKR2nA9vn5ZkeP!
  166. # 多数据源配置
  167. #multi-datasource1:
  168. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  169. #username: root
  170. #password: root
  171. driver-class-name: com.mysql.cj.jdbc.Driver
  172. #redis 配置
  173. redis:
  174. database: 0
  175. host: 47.109.18.141
  176. port: 6379
  177. password: BXyzm3RKR2nA9vn5ZkeP
  178. redisson:
  179. file: classpath:redisson.yml
  180. #mybatis plus 设置
  181. mybatis-plus:
  182. mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml
  183. global-config:
  184. # 关闭MP3.0自带的banner
  185. banner: false
  186. db-config:
  187. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  188. id-type: ASSIGN_ID
  189. # 默认数据库表下划线命名
  190. table-underline: true
  191. logic-delete-field: delFlag # 逻辑删除字段名
  192. logic-delete-value: 1 # 已删除值
  193. logic-not-delete-value: 0 # 未删除值
  194. configuration:
  195. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  196. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  197. # 返回类型为Map,显示null对应的字段
  198. call-setters-on-nulls: true
  199. #jeecg专用配置
  200. minidao:
  201. base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
  202. jeecg:
  203. # AI集成
  204. ai-chat:
  205. enabled: true
  206. model: deepseek-chat
  207. apiKey: ??
  208. apiHost: https://api.deepseek.com/v1
  209. timeout: 60
  210. # AIRag向量库
  211. ai-rag:
  212. embed-store:
  213. host: 127.0.0.1
  214. port: 5432
  215. database: postgres
  216. user: postgres
  217. password: postgres
  218. table: embeddings
  219. # 平台上线安全配置
  220. firewall:
  221. # 数据源安全 (开启后,Online报表和图表的数据源为必填)
  222. dataSourceSafe: false
  223. # 低代码模式(dev:开发模式,prod:发布模式——关闭所有在线开发配置能力)
  224. lowCodeMode: dev
  225. # 签名密钥串(前后端要一致,正式发布请自行修改)
  226. signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
  227. #签名拦截接口
  228. 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
  229. # 本地:local、Minio:minio、阿里云:alioss
  230. uploadType: alioss
  231. # 前端访问地址
  232. domainUrl:
  233. pc: http://localhost:3100
  234. app: http://localhost:8051
  235. path:
  236. #文件上传根目录 设置
  237. upload: /opt/upFiles
  238. #webapp文件路径
  239. webapp: /opt/webapp
  240. shiro:
  241. excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**
  242. #阿里云oss存储和大鱼短信秘钥配置
  243. oss:
  244. accessKey: LTAI5tJscqbev7wSugGCrEtt
  245. secretKey: xJkoJR1ILpXNSF2ERnxNq71UZTQNcB
  246. endpoint: oss-cn-beijing.aliyuncs.com
  247. bucketName: national-motion
  248. # 短信模板
  249. sms-template:
  250. # 签名
  251. signature:
  252. # 模板code
  253. templateCode:
  254. # 登录短信、忘记密码模板编码
  255. SMS_175435174:
  256. # 修改密码短信模板编码
  257. SMS_465391221:
  258. # 注册账号短信模板编码
  259. SMS_175430166:
  260. # 在线预览文件服务器地址配置
  261. file-view-domain: http://fileview.jeecg.com
  262. # minio文件上传
  263. minio:
  264. minio_url: http://minio.jeecg.com
  265. minio_name: ??
  266. minio_pass: ??
  267. bucketName: otatest
  268. #大屏报表参数设置
  269. jmreport:
  270. #多租户模式,默认值为空(created:按照创建人隔离、tenant:按照租户隔离) (v1.6.2+ 新增)
  271. saasMode:
  272. # 平台上线安全配置(v1.6.2+ 新增)
  273. firewall:
  274. # 数据源安全 (开启后,不允许使用平台数据源、SQL解析加签并且不允许查询数据库)
  275. dataSourceSafe: false
  276. # 低代码开发模式(dev:开发模式,prod:发布模式—关闭在线报表设计功能,分配角色admin、lowdeveloper可以放开限制)
  277. lowCodeMode: dev
  278. #xxl-job配置
  279. xxljob:
  280. enabled: false
  281. adminAddresses: http://127.0.0.1:9080/xxl-job-admin
  282. appname: ${spring.application.name}
  283. accessToken: ''
  284. address: 127.0.0.1:30007
  285. ip: 127.0.0.1
  286. port: 30007
  287. logPath: logs/jeecg/job/jobhandler/
  288. logRetentionDays: 30
  289. #分布式锁配置
  290. # redisson:
  291. # address: 127.0.0.1:6379
  292. # password:
  293. # type: STANDALONE
  294. # enabled: true
  295. # 百度开放API配置
  296. baidu-api:
  297. app-id: ??
  298. api-key: ??
  299. secret-key: ??
  300. #cas单点登录
  301. cas:
  302. prefixUrl: http://cas.example.org:8443/cas
  303. #Mybatis输出sql日志
  304. logging:
  305. level:
  306. org.flywaydb: debug
  307. org.jeecg.modules.system.mapper: info
  308. #swagger
  309. knife4j:
  310. #开启增强配置
  311. enable: true
  312. #开启生产环境屏蔽
  313. production: true
  314. basic:
  315. enable: false
  316. username: jeecg
  317. password: jeecg1314
  318. #第三方登录
  319. justauth:
  320. enabled: true
  321. type:
  322. GITHUB:
  323. client-id: ??
  324. client-secret: ??
  325. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  326. WECHAT_ENTERPRISE:
  327. client-id: ??
  328. client-secret: ??
  329. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  330. agent-id: ??
  331. DINGTALK:
  332. client-id: ??
  333. client-secret: ??
  334. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  335. WECHAT_OPEN:
  336. client-id: ??
  337. client-secret: ??
  338. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  339. cache:
  340. type: default
  341. prefix: 'demo::'
  342. timeout: 1h
  343. # 微信相关
  344. #wx:
  345. # # 微信小程序
  346. # miniapp:
  347. # configs:
  348. # - appid: wx6260718c6fd46efb
  349. # secret: 353c9d6d84347de7af9a7788a00a725e
  350. # token: #微信小程序消息服务器配置的token
  351. # aesKey: #微信小程序消息服务器配置的EncodingAESKey
  352. # msgDataFormat: JSON
  353. #wx:
  354. # # 微信小程序
  355. # miniapp:
  356. # configs:
  357. # - appid: wxc032a09413289004
  358. # secret: 453c5047ae43288f1d015d48df32a5c0
  359. # token: #微信小程序消息服务器配置的token
  360. # aesKey: #微信小程序消息服务器配置的EncodingAESKey
  361. # msgDataFormat: JSON
  362. # 微信相关
  363. wx:
  364. # 微信小程序
  365. miniapp:
  366. configs:
  367. - appid: wxe70e6c132e5b4c28
  368. secret: 1b33b5f64d4745d3f6c6a3097a914415
  369. token: #微信小程序消息服务器配置的token
  370. aesKey: #微信小程序消息服务器配置的EncodingAESKey
  371. msgDataFormat: JSON
  372. # 微信支付配置
  373. pay:
  374. #服务商微信支付商户号
  375. mchId: 1649629687
  376. #证书
  377. keyPath: classpath:cert/apiclient_cert.p12
  378. #服务商微信公众号或者小程序等的appid
  379. appId: wx43b5b906cc30ed0b
  380. #支付回调通知地址
  381. notifyUrl:
  382. #服务商key的密钥
  383. mchKey:
  384. #特约商户微信公众号或者小程序等的appid
  385. subAppId:
  386. #apiV3秘钥
  387. apiV3Key: 4b64e17419689527b256f07cdf6bd60c
  388. #证书号
  389. certSerialNo: 5EB65CC0F912EA2ADD3363EA3DA0230DF6DA90BC
  390. #apiclient_key.pem证书文件的绝对路径或者以classpath:开头的类路径
  391. privateKeyPath: classpath:cert/apiclient_key.pem
  392. #apiclient_cert.pem证书文件的绝对路径或者以classpath:开头的类路径
  393. privateCertPath: classpath:cert/apiclient_cert.pem
  394. baidu:
  395. map:
  396. keys:
  397. - ak: muOeefnWVcMymKORaYmGVNEx9ZtCsOoS
  398. sk: ZDoHSoYoTvynHB6Gw3SxVQ7KpgcoLNJs
  399. # 微信小程序配置
  400. wechat:
  401. miniprogram:
  402. # appid: wxc032a09413289004 #嘉年华
  403. # appid: wx6260718c6fd46efb #全龄用户(目前商家端再用)
  404. appid: wxe70e6c132e5b4c28 #全龄商家(目前用户端再用)
  405. # appsecret: 453c5047ae43288f1d015d48df32a5c0 #嘉年华
  406. # appsecret: 353c9d6d84347de7af9a7788a00a725e #全龄用户(目前商家端再用)
  407. appsecret: 1b33b5f64d4745d3f6c6a3097a914415 #全龄商家(目前用户端再用)
  408. token:
  409. cache:
  410. enabled: true
  411. timeout: 7000 # 单位秒(2小时=7200秒,提前200秒刷新)
  412. # HTTP连接池配置
  413. http:
  414. pool:
  415. max:
  416. total: 200
  417. default:
  418. max:
  419. per_route: 50
  420. validate:
  421. after_inactivity: 30000