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.

344 lines
10 KiB

6 months ago
6 months ago
5 months ago
5 months ago
  1. server:
  2. port: 8014
  3. tomcat:
  4. max-swallow-size: -1
  5. error:
  6. include-exception: true
  7. include-stacktrace: ALWAYS
  8. include-message: ALWAYS
  9. servlet:
  10. context-path: /aluminium-prod
  11. compression:
  12. enabled: true
  13. min-response-size: 1024
  14. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  15. # 清除npm缓存
  16. # npm cache clean --force
  17. # 取消ssl验证:
  18. # npm config set strict-ssl false
  19. management:
  20. endpoints:
  21. web:
  22. exposure:
  23. include: metrics,httptrace
  24. spring:
  25. servlet:
  26. multipart:
  27. max-file-size: 10MB
  28. max-request-size: 10MB
  29. mail:
  30. host: smtp.qq.com
  31. username:
  32. password:
  33. properties:
  34. mail:
  35. smtp:
  36. auth: true
  37. starttls:
  38. enable: true
  39. required: true
  40. ## quartz定时任务,采用数据库方式
  41. quartz:
  42. job-store-type: jdbc
  43. initialize-schema: embedded
  44. #定时任务启动开关,true-开 false-关
  45. auto-startup: true
  46. #启动时更新己存在的Job
  47. overwrite-existing-jobs: true
  48. properties:
  49. org:
  50. quartz:
  51. scheduler:
  52. instanceName: MyScheduler
  53. instanceId: AUTO
  54. jobStore:
  55. class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  56. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  57. tablePrefix: QRTZ_
  58. isClustered: true
  59. misfireThreshold: 60000
  60. clusterCheckinInterval: 10000
  61. threadPool:
  62. class: org.quartz.simpl.SimpleThreadPool
  63. threadCount: 10
  64. threadPriority: 5
  65. threadsInheritContextClassLoaderOfInitializingThread: true
  66. #json 时间戳统一转换
  67. jackson:
  68. date-format: yyyy-MM-dd HH:mm:ss
  69. time-zone: GMT+8
  70. jpa:
  71. open-in-view: false
  72. activiti:
  73. check-process-definitions: false
  74. #启用作业执行器
  75. async-executor-activate: false
  76. #启用异步执行器
  77. job-executor-activate: false
  78. aop:
  79. proxy-target-class: true
  80. #配置freemarker
  81. freemarker:
  82. # 设置模板后缀名
  83. suffix: .ftl
  84. # 设置文档类型
  85. content-type: text/html
  86. # 设置页面编码格式
  87. charset: UTF-8
  88. # 设置页面缓存
  89. cache: false
  90. prefer-file-system-access: false
  91. # 设置ftl文件路径
  92. template-loader-path:
  93. - classpath:/templates
  94. # 设置静态文件路径,js,css等
  95. mvc:
  96. static-path-pattern: /**
  97. #Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
  98. pathmatch:
  99. matching-strategy: ant_path_matcher
  100. resource:
  101. static-locations: classpath:/static/,classpath:/public/
  102. autoconfigure:
  103. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  104. datasource:
  105. druid:
  106. stat-view-servlet:
  107. enabled: true
  108. loginUsername: admin
  109. loginPassword: 123456
  110. allow:
  111. web-stat-filter:
  112. enabled: true
  113. dynamic:
  114. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  115. # 连接池的配置信息
  116. # 初始化大小,最小,最大
  117. initial-size: 5
  118. min-idle: 5
  119. maxActive: 20
  120. # 配置获取连接等待超时的时间
  121. maxWait: 60000
  122. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  123. timeBetweenEvictionRunsMillis: 60000
  124. # 配置一个连接在池中最小生存的时间,单位是毫秒
  125. minEvictableIdleTimeMillis: 300000
  126. validationQuery: SELECT 1
  127. testWhileIdle: true
  128. testOnBorrow: false
  129. testOnReturn: false
  130. # 打开PSCache,并且指定每个连接上PSCache的大小
  131. poolPreparedStatements: true
  132. maxPoolPreparedStatementPerConnectionSize: 20
  133. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  134. filters: stat,wall,slf4j
  135. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  136. # connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  137. datasource:
  138. master:
  139. url: jdbc:mysql://42.194.239.145:3306/aluminium-api?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&autoReconnect=true&failOverReadOnly=false
  140. username: root
  141. password: I5+sHYZQ
  142. driver-class-name: com.mysql.cj.jdbc.Driver
  143. # 多数据源配置
  144. #multi-datasource1:
  145. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  146. #username: root
  147. #password: root
  148. #driver-class-name: com.mysql.cj.jdbc.Driver
  149. #redis 配置
  150. redis:
  151. database: 14
  152. host: 42.194.239.145
  153. lettuce:
  154. pool:
  155. max-active: -1 #最大连接数据库连接数,设 -1 为没有限制
  156. max-idle: 0 #最大等待连接中的数量,设 0 为没有限制
  157. max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  158. min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
  159. shutdown-timeout: 1000ms
  160. password: 'lzx.123456'
  161. port: 6379
  162. #mybatis plus 设置
  163. mybatis-plus:
  164. mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml
  165. global-config:
  166. # 关闭MP3.0自带的banner
  167. banner: false
  168. db-config:
  169. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  170. id-type: ASSIGN_ID
  171. # 默认数据库表下划线命名
  172. table-underline: true
  173. configuration:
  174. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  175. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  176. # 返回类型为Map,显示null对应的字段
  177. call-setters-on-nulls: true
  178. #jeecg专用配置
  179. minidao :
  180. base-package: org.jeecg.modules.jmreport.*
  181. jeecg :
  182. # 是否启用安全模式
  183. safeMode: false
  184. # 签名密钥串(前后端要一致,正式发布请自行修改)
  185. signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
  186. # 本地:local\Minio:minio\阿里云:alioss
  187. uploadType: alioss
  188. path :
  189. #文件上传根目录 设置
  190. upload: /opt/upFiles
  191. #webapp文件路径
  192. webapp: /opt/webapp
  193. shiro:
  194. excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**
  195. #阿里云oss存储和大鱼短信秘钥配置
  196. oss:
  197. accessKey: LTAI5tQSs47izVy8DLVdwUU9
  198. secretKey: qHI7C3PaXYZySr84HTToviC71AYlFq
  199. endpoint: oss-cn-shenzhen.aliyuncs.com
  200. bucketName: hanhaiimage
  201. staticDomain: https://image.hhlm1688.com/
  202. # ElasticSearch 6设置
  203. elasticsearch:
  204. cluster-name: jeecg-ES
  205. cluster-nodes: 127.0.0.1:9200
  206. check-enabled: false
  207. # 表单设计器配置
  208. desform:
  209. # 主题颜色(仅支持 16进制颜色代码)
  210. theme-color: "#1890ff"
  211. # 文件、图片上传方式,可选项:qiniu(七牛云)、system(跟随系统配置)
  212. upload-type: system
  213. map:
  214. # 配置百度地图的AK,申请地址:https://lbs.baidu.com/apiconsole/key?application=key#/home
  215. baidu: ??
  216. # 在线预览文件服务器地址配置
  217. file-view-domain: 127.0.0.1:8012
  218. # minio文件上传
  219. minio:
  220. minio_url: http://minio.jeecg.com
  221. minio_name: ??
  222. minio_pass: ??
  223. bucketName: otatest
  224. #大屏报表参数设置
  225. jmreport:
  226. mode: dev
  227. #数据字典是否进行saas数据隔离,自己看自己的字典
  228. saas: false
  229. #是否需要校验token
  230. is_verify_token: true
  231. #必须校验方法
  232. verify_methods: remove,delete,save,add,update
  233. #自定义项目前缀
  234. customPrePath:
  235. pageSize:
  236. - 10
  237. - 20
  238. - 30
  239. - 40
  240. #Wps在线文档
  241. wps:
  242. domain: https://wwo.wps.cn/office/
  243. appid: ??
  244. appsecret: ??
  245. #xxl-job配置
  246. xxljob:
  247. enabled: false
  248. adminAddresses: http://127.0.0.1:9080/xxl-job-admin
  249. appname: ${spring.application.name}
  250. accessToken: ''
  251. address: 127.0.0.1:30007
  252. ip: 127.0.0.1
  253. port: 30007
  254. logPath: logs/jeecg/job/jobhandler/
  255. logRetentionDays: 30
  256. route:
  257. config:
  258. data-id: jeecg-gateway-router
  259. group: DEFAULT_GROUP
  260. #自定义路由配置 yml nacos database
  261. data-type: database
  262. #分布式锁配置
  263. redisson:
  264. address: 127.0.0.1:6379
  265. password:
  266. type: STANDALONE
  267. enabled: true
  268. #cas单点登录
  269. cas:
  270. prefixUrl: http://cas.example.org:8443/cas
  271. #Mybatis输出sql日志
  272. logging:
  273. level:
  274. org.jeecg.modules.system.mapper : info
  275. org.jeecg.modules : debug
  276. #swagger
  277. knife4j:
  278. #开启增强配置
  279. enable: true
  280. #开启生产环境屏蔽
  281. production: false
  282. basic:
  283. enable: false
  284. username: jeecg
  285. password: jeecg1314
  286. #第三方登录
  287. justauth:
  288. enabled: true
  289. type:
  290. GITHUB:
  291. client-id: ??
  292. client-secret: ??
  293. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  294. WECHAT_ENTERPRISE:
  295. client-id: ??
  296. client-secret: ??
  297. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  298. agent-id: ??
  299. DINGTALK:
  300. client-id: ??
  301. client-secret: ??
  302. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  303. WECHAT_OPEN:
  304. client-id: ??
  305. client-secret: ??
  306. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  307. cache:
  308. type: default
  309. prefix: 'demo::'
  310. timeout: 1h
  311. #第三方APP对接
  312. third-app:
  313. enabled: false
  314. type:
  315. #企业微信
  316. WECHAT_ENTERPRISE:
  317. enabled: false
  318. #CORP_ID
  319. client-id: ??
  320. #SECRET
  321. client-secret: ??
  322. #自建应用id
  323. agent-id: ??
  324. #自建应用秘钥(新版企微需要配置)
  325. # agent-app-secret: ??
  326. #钉钉
  327. DINGTALK:
  328. enabled: false
  329. # appKey
  330. client-id: ??
  331. # appSecret
  332. client-secret: ??
  333. agent-id: ??
  334. ##配置微信
  335. wechat:
  336. mpAppId:
  337. mpAppSecret:
  338. mchId:
  339. mchKey:
  340. keyPath:
  341. notifyUrl: