application-prod.yml 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. v2:
  2. #虚拟路径映射路径 2个文件路径一一对应 第一个为主存储,其他为配置相关
  3. xnljmap:
  4. #win服务器 本地 注意!! 记住这个结尾有一个/
  5. oss: file:/data/qomo-boot/oss/
  6. # oss: file:D:/upload/
  7. #linux服务器
  8. #oss: file:/home/webapps/oss/
  9. #虚拟路径映射路径 end
  10. #本地存放地址 注意!! 记住这个结尾没有/
  11. fileurl: /data/qomo-boot/oss
  12. # fileurl: D:/upload
  13. #http://127.0.0.1:8080/oss/{yy}/2022-12-22/c83a77ae134a540c30daa6a0666fa945.md
  14. httpurl: /qomo/
  15. defaultFormat: .png
  16. server:
  17. port: 8095
  18. tomcat:
  19. max-swallow-size: -1
  20. error:
  21. include-exception: true
  22. include-stacktrace: ALWAYS
  23. include-message: ALWAYS
  24. servlet:
  25. context-path: /qomo
  26. compression:
  27. enabled: true
  28. min-response-size: 1024
  29. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  30. management:
  31. endpoints:
  32. web:
  33. exposure:
  34. include: metrics,httptrace
  35. spring:
  36. servlet:
  37. multipart:
  38. max-file-size: 10MB
  39. max-request-size: 10MB
  40. mail:
  41. host: smtp.163.com
  42. username: jeecgos@163.com
  43. password: ??
  44. properties:
  45. mail:
  46. smtp:
  47. auth: true
  48. starttls:
  49. enable: true
  50. required: true
  51. ## quartz定时任务,采用数据库方式
  52. quartz:
  53. job-store-type: jdbc
  54. initialize-schema: embedded
  55. #定时任务启动开关,true-开 false-关
  56. auto-startup: true
  57. #延迟1秒启动定时任务
  58. startup-delay: 1s
  59. #启动时更新己存在的Job
  60. overwrite-existing-jobs: true
  61. properties:
  62. org:
  63. quartz:
  64. scheduler:
  65. instanceName: MyScheduler
  66. instanceId: AUTO
  67. jobStore:
  68. class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  69. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  70. tablePrefix: QRTZ_
  71. isClustered: true
  72. misfireThreshold: 12000
  73. clusterCheckinInterval: 15000
  74. threadPool:
  75. class: org.quartz.simpl.SimpleThreadPool
  76. threadCount: 10
  77. threadPriority: 5
  78. threadsInheritContextClassLoaderOfInitializingThread: true
  79. #json 时间戳统一转换
  80. jackson:
  81. date-format: yyyy-MM-dd HH:mm:ss
  82. time-zone: GMT+8
  83. jpa:
  84. open-in-view: false
  85. # http请求配置
  86. rest:
  87. livy:
  88. server: http://192.168.50.9:7997
  89. spark:
  90. # 组件部署路径,默认是部署在hdfs 如果是本地路径则在前面加上local:
  91. main-jar: local:/opt/services/deploy-jars/dev/qomo-data-component-${Qomo.version}-jar-with-dependencies.jar
  92. main-class: com.zzsmart.qomo.QomoSparkStarter
  93. # spark默认运行参数
  94. deploy-mode: cluster
  95. queue: default
  96. num-executors: 2
  97. executor-cores: 1
  98. executor-memory: 1G
  99. driver-cores: 1
  100. driver-memory: 512M
  101. # 客户端类型
  102. client-type: urlconnection
  103. # URLConnection配置
  104. url-connection:
  105. # 客户端和服务器建立连接超时时间
  106. connect-timeout: 2000
  107. # 客户端从服务器读取数据包超时时间
  108. read-timeout: 30000
  109. # 是否长链接
  110. keep-alive: false
  111. # HttpClient配置
  112. http-client:
  113. # 连接池的最大连接数
  114. max-total-connect: 200
  115. # 相同域名允许创建的最大连接数
  116. max-connect-per-route: 10
  117. # 客户端和服务器建立连接超时时间
  118. connect-timeout: 2000
  119. # 读数据的超时时间
  120. socket-timeout: 30000
  121. # 连接池创建连接时的超时时间
  122. connection-request-timout: 200
  123. # OKHttp配置
  124. ok-http:
  125. # 失败后是否重试
  126. retry-on-connection-failure: false
  127. # 链接超时时间
  128. connect-timeout: 2000
  129. # 读超时时间
  130. read-timeout: 10000
  131. # 写超时时间
  132. write-timeout: 10000
  133. # 最大空闲的连接数
  134. max-idle-connections: 5
  135. # 最大的空闲时间
  136. keep-alive-duration-ns: 3000
  137. aop:
  138. proxy-target-class: true
  139. #配置freemarker
  140. freemarker:
  141. # 设置模板后缀名
  142. suffix: .ftl
  143. # 设置文档类型
  144. content-type: text/html
  145. # 设置页面编码格式
  146. charset: UTF-8
  147. # 设置页面缓存
  148. cache: false
  149. prefer-file-system-access: false
  150. # 设置ftl文件路径
  151. template-loader-path:
  152. - classpath:/template
  153. # - d:/data
  154. template_update_delay: 0
  155. # 设置静态文件路径,js,css等
  156. mvc:
  157. static-path-pattern: /**
  158. #Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
  159. pathmatch:
  160. matching-strategy: ant_path_matcher
  161. resource:
  162. static-locations: classpath:/static/,classpath:/public/
  163. autoconfigure:
  164. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  165. datasource:
  166. druid:
  167. stat-view-servlet:
  168. enabled: true
  169. loginUsername: admin
  170. loginPassword: 123456
  171. allow:
  172. web-stat-filter:
  173. enabled: true
  174. dynamic:
  175. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  176. # 连接池的配置信息
  177. # 初始化大小,最小,最大
  178. initial-size: 5
  179. min-idle: 5
  180. maxActive: 20
  181. # 配置获取连接等待超时的时间
  182. maxWait: 60000
  183. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  184. timeBetweenEvictionRunsMillis: 60000
  185. # 配置一个连接在池中最小生存的时间,单位是毫秒
  186. minEvictableIdleTimeMillis: 300000
  187. validationQuery: SELECT 1
  188. testWhileIdle: true
  189. testOnBorrow: false
  190. testOnReturn: false
  191. # 打开PSCache,并且指定每个连接上PSCache的大小
  192. poolPreparedStatements: true
  193. maxPoolPreparedStatementPerConnectionSize: 20
  194. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  195. filters: stat,slf4j
  196. filter:
  197. wall:
  198. config:
  199. none-base-statement-allow: true
  200. multi-statement-allow: true
  201. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  202. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  203. datasource:
  204. master:
  205. url: jdbc:mysql://192.168.50.9:2212/otd?useUnicode=true&allowMultiQueries=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai&useSSL=false
  206. username: root
  207. password: root
  208. driver-class-name: com.mysql.cj.jdbc.Driver
  209. # 多数据源配置
  210. #multi-datasource1:
  211. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  212. #username: root
  213. #password: root
  214. #driver-class-name: com.mysql.cj.jdbc.Driver
  215. #redis 配置
  216. redis:
  217. database: 9
  218. host: 192.168.50.9
  219. port: 7379
  220. password: 'zzboard'
  221. main:
  222. allow-circular-references: true
  223. #rabbitmq 配置
  224. rabbitmq:
  225. host: 192.168.50.9
  226. port: 5672
  227. virtual-host: /qomoflow-dev
  228. username: admin
  229. password: kncloud
  230. connection-timeout: 5000
  231. listener:
  232. simple:
  233. concurrency: 5 # 并发数量
  234. max-concurrency: 10 # 最大并发数量
  235. acknowledge-mode: manual # 开启手动签收
  236. prefetch: 1 # 限制每次只消费一个(一个线程)
  237. #mybatis plus 设置
  238. mybatis-plus:
  239. mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml,classpath*:/mapper/*.xml,classpath*:com/zzsmart/qomo/**/mapper/xml/*.xml
  240. global-config:
  241. # 关闭MP3.0自带的banner
  242. banner: false
  243. db-config:
  244. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  245. id-type: ASSIGN_ID
  246. # 默认数据库表下划线命名
  247. table-underline: true
  248. configuration:
  249. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  250. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  251. # log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  252. # 返回类型为Map,显示null对应的字段
  253. call-setters-on-nulls: true
  254. #jeecg专用配置
  255. minidao:
  256. base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
  257. jeecg:
  258. # 是否启用安全模式
  259. safeMode: false
  260. # 签名密钥串(前后端要一致,正式发布请自行修改)
  261. signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
  262. # 签名拦截接口
  263. 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
  264. #local、minio、alioss
  265. uploadType: local
  266. # 前端访问地址
  267. domainUrl:
  268. pc: http://localhost:3100
  269. app: http://localhost:8051
  270. path:
  271. #文件上传根目录 设置
  272. upload: /opt/upFiles
  273. #webapp文件路径
  274. webapp: /opt/webapp
  275. shiro:
  276. # excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/sys/sysDepart/**,/taskSocket/**,/flowSocket/**
  277. excludeUrls: /**/**,/**/**/**
  278. #阿里云oss存储和大鱼短信秘钥配置
  279. oss:
  280. accessKey: ??
  281. secretKey: ??
  282. endpoint: oss-cn-beijing.aliyuncs.com
  283. bucketName: jeecgdev
  284. minio:
  285. minio_url: http://192.168.50.102:9000
  286. minio_name: admin
  287. minio_pass: minioadmin
  288. bucketName: bucket803
  289. # ElasticSearch 6设置
  290. elasticsearch:
  291. cluster-name: elasticsearch-cluster
  292. cluster-nodes: 192.168.50.9:9200
  293. check-enabled: false
  294. task-data-index: task_data_dev/_doc
  295. task-data-struct-index: task_data_struct_dev/_doc
  296. task-data-temp-index: task_data_temp_dev/_doc
  297. task-log-index: task_log_dev/_doc
  298. # 在线预览文件服务器地址配置
  299. file-view-domain: http://fileview.jeecg.com
  300. # minio文件上传
  301. # minio:
  302. # minio_url: http://minio.jeecg.com
  303. # minio_name: ??
  304. # minio_pass: ??
  305. # bucketName: otatest
  306. #大屏报表参数设置
  307. jmreport:
  308. mode: dev
  309. #数据字典是否进行saas数据隔离,自己看自己的字典
  310. saas: false
  311. #xxl-job配置
  312. xxljob:
  313. enabled: false
  314. adminAddresses: http://127.0.0.1:9080/xxl-job-admin
  315. appname: ${spring.application.name}
  316. accessToken: ''
  317. address: 127.0.0.1:30007
  318. ip: 127.0.0.1
  319. port: 30007
  320. logPath: logs/jeecg/job/jobhandler/
  321. logRetentionDays: 30
  322. #分布式锁配置
  323. redisson:
  324. address: 127.0.0.1:6379
  325. password:
  326. type: STANDALONE
  327. enabled: true
  328. #cas单点登录
  329. cas:
  330. server:
  331. host:
  332. #CAS服务地址
  333. url: http://192.168.50.9:8167/cas
  334. #Mybatis输出sql日志
  335. logging:
  336. level:
  337. org.jeecg.modules.system.mapper: info
  338. #swagger
  339. knife4j:
  340. #开启增强配置
  341. enable: true
  342. #开启生产环境屏蔽
  343. production: false
  344. basic:
  345. enable: false
  346. username: jeecg
  347. password: jeecg1314
  348. #第三方登录
  349. justauth:
  350. enabled: true
  351. type:
  352. GITHUB:
  353. client-id: ??
  354. client-secret: ??
  355. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  356. WECHAT_ENTERPRISE:
  357. client-id: ??
  358. client-secret: ??
  359. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  360. agent-id: ??
  361. DINGTALK:
  362. client-id: ??
  363. client-secret: ??
  364. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  365. WECHAT_OPEN:
  366. client-id: ??
  367. client-secret: ??
  368. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  369. cache:
  370. type: default
  371. prefix: 'demo::'
  372. timeout: 1h
  373. #第三方APP对接
  374. third-app:
  375. enabled: false
  376. type:
  377. #企业微信
  378. WECHAT_ENTERPRISE:
  379. enabled: false
  380. #CORP_ID
  381. client-id: ??
  382. #SECRET
  383. client-secret: ??
  384. #自建应用id
  385. agent-id: ??
  386. #自建应用秘钥(新版企微需要配置)
  387. # agent-app-secret: ??
  388. #钉钉
  389. DINGTALK:
  390. enabled: false
  391. # appKey
  392. client-id: ??
  393. # appSecret
  394. client-secret: ??
  395. agent-id: ??
  396. spark:
  397. app:
  398. name: yl
  399. home: 127.0.0.1
  400. master:
  401. uri: local[*]
  402. driver:
  403. memory: 2g
  404. worker:
  405. memory: 2g
  406. executor:
  407. memory: 1g
  408. rpc:
  409. message:
  410. maxSize: 1024
  411. flowable:
  412. process:
  413. definition-cache-limit: -1
  414. database-schema-update: true
  415. activity-font-name: 宋体
  416. label-font-name: 宋体
  417. annotation-font-name: 宋体
  418. #关闭定时任务JOB
  419. async-executor-activate: false
  420. #消息链接基地址
  421. message-base-url: http://192.168.50.9:3000/flowable/task/record/
  422. Qomo:
  423. version: @project.version@
  424. modelPath: /opt/services/deploy-jars/algo/model
  425. seaTunnelHome: /opt/service/apache-seatunnel-2.3.4
  426. hiveMetastoreUri: thrift://192.168.50.102:9083
  427. minio:
  428. server: http://192.168.50.102
  429. port: 9000
  430. access-key: admin
  431. secret-key: minioadmin
  432. bucketName: bucket1
  433. condaEnv: py310
  434. analysis:
  435. consistency:
  436. url: http://192.168.50.9:1314/analysis