application-production.yml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. server:
  2. port: 8078
  3. servlet:
  4. context-path:
  5. tomcat:
  6. uri-encoding: UTF-8
  7. basedir: /Users/liugf
  8. max-threads: 2000
  9. min-spare-threads: 10
  10. accesslog:
  11. pattern: common
  12. enabled: true
  13. directory: logs
  14. prefix: jeeplus_access_log
  15. suffix: .log
  16. request-attributes-enabled: true
  17. rename-on-rotate: true
  18. max-http-form-post-size: 200MB
  19. jetty:
  20. max-http-form-post-size: 20000000B
  21. logging:
  22. level:
  23. root: INFO
  24. # org.flowable: DEBUG
  25. com.jeeplus: DEBUG
  26. org.apache.shiro.cache.ehcache.EhCacheManager: WARN
  27. spring:
  28. servlet:
  29. multipart:
  30. maxFileSize: 1000MB
  31. maxRequestSize: 1000MB
  32. devtools:
  33. restart:
  34. enabled: true
  35. # profiles:
  36. # active: dev
  37. autoconfigure:
  38. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  39. # jpa:
  40. # open-in-view: false
  41. datasource:
  42. dynamic:
  43. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  44. SelectMethod: cursor
  45. filters: stat # 注意这个值和druid原生不一致,默认启动了stat,wall
  46. validation-query: SELECT 'x'
  47. p6spy: false # 默认false,线上必须关闭。开发阶段可以打开调试输出mybatis语句,但是有许多莫名其妙的bug,以及严重的性能问题,所以正式环境必须关闭。
  48. primary: master
  49. datasource:
  50. master:
  51. username: root
  52. password: root
  53. url: jdbc:mysql://127.0.0.1:3306/jeeplus-vue-saas-v3?useUnicode=true&characterEncoding=utf-8&useSSL=false&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8
  54. driver-class-name: com.mysql.cj.jdbc.Driver
  55. #oracle database settings
  56. # username: monitor
  57. # password: monitor
  58. # url: jdbc:oracle:thin:@127.0.0.1:1521:helowin
  59. # driver-class-name: oracle.jdbc.driver.OracleDriver
  60. ##mssql database settings
  61. # username: sa
  62. # password: yourStrong(!)Password
  63. # driver-class-name: net.sourceforge.jtds.jdbc.Driver
  64. # url: jdbc:jtds:sqlserver://localhost:1433;SelectMethod=cursor;DatabaseName=jeeplus
  65. # SelectMethod: cursor
  66. ##pg database settings
  67. # username: postgres
  68. # password: password
  69. # driver-class-name: org.postgresql.Driver
  70. # url: jdbc:postgresql://localhost:5432/jeeplus-boot-pg
  71. # testSql: SELECT 'x'
  72. # if you need use pg database , please enable this config.
  73. jpa:
  74. properties:
  75. hibernate:
  76. jdbc:
  77. lob:
  78. non_contextual_creation: true
  79. # redis的配置
  80. redis:
  81. host: localhost
  82. port: 6379
  83. expireTime: 3600000 #单位秒
  84. database: 3
  85. mvc.servlet.load-on-startup: 1
  86. jmx:
  87. enabled: false
  88. # quartz任务配置
  89. quartz:
  90. job-store-type: jdbc
  91. properties:
  92. org:
  93. quartz:
  94. scheduler:
  95. instanceName: clusteredScheduler
  96. instanceId: AUTO
  97. jobStore:
  98. selectWithLockSQL: SELECT * FROM {0}LOCKS UPDLOCK WHERE LOCK_NAME = ?
  99. class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  100. tablePrefix: QRTZ_
  101. isClustered: false # 打开集群配置
  102. clusterCheckinInterval: 2000 # 设置集群检查间隔20s
  103. useProperties: false
  104. threadPool:
  105. class: org.quartz.simpl.SimpleThreadPool
  106. threadCount: 10
  107. threadPriority: 5
  108. threadsInheritContextClassLoaderOfInitializingThread: true
  109. flowable:
  110. # 关闭定时任务Job
  111. async-executor-activate: true
  112. check-process-definitions: false
  113. process-definition-location-prefix: classpath:/processes/
  114. database-schema-update: false
  115. common:
  116. app:
  117. idm-url: http://localhost:9999
  118. idm-admin:
  119. user: admin
  120. password: test
  121. #mybatis-plus配置
  122. mybatis-plus:
  123. config-location: classpath:/mybatis/mybatis-config.xml
  124. mapper-locations:
  125. - classpath*:com/jeeplus/**/*Mapper.xml
  126. - classpath:/META-INF/admin-mybatis-mappings/*.xml
  127. - classpath:/META-INF/modeler-mybatis-mappings/*.xml
  128. #实体扫描,多个package用逗号或者分号分隔
  129. typeAliasesPackage: com.jeeplus.**.domain
  130. configuration-properties:
  131. prefix:
  132. boolValue: TRUE
  133. blobType: BLOB
  134. type-handlers-package: com.jeeplus.core.mapper
  135. # global-config:
  136. # db-config:
  137. # logic-removeWithChildrenById-field: delFlag # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
  138. # logic-removeWithChildrenById-value: 1 # 逻辑已删除值(默认为 1)
  139. # logic-not-removeWithChildrenById-value: 0 # 逻辑未删除值(默认为 0)
  140. #是否开启 swagger,生产环境请关闭
  141. swagger:
  142. enable: false
  143. #cas服务端的地址
  144. cas:
  145. server-url-prefix: https://www.cainiao.com:8443/cas
  146. #wps配置
  147. wps:
  148. appid: 3f86c4255efd4e9c9d3ce6554e0fdf0d
  149. appsecret: 4bbc464724dc4351a93a70c95856197f
  150. download_host: http://demo1.jeeplus.org/jeeplus-vue
  151. domain: https://wwo.wps.cn
  152. downloadCallbackPath: /usr/local/wps
  153. webctx: /jeeplus-vue
  154. #演示模式
  155. demoMode: true
  156. #oss配置
  157. config:
  158. accessory:
  159. #local, aliyun, minIO
  160. type: local
  161. baseDir: local
  162. local:
  163. location: /userfiles
  164. aliyun:
  165. endpoint:
  166. accessKeyId:
  167. accessKeySecret:
  168. bucketName:
  169. minIO:
  170. endpoint:
  171. accessKey:
  172. secretKey:
  173. bucketName:
  174. #上传文件类型配置
  175. file:
  176. allowedType: file # 允许上传的文件类型, all, file ,image, audio, video, office
  177. extensions:
  178. all: all # 允许上传所有类型文件
  179. file: 7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip # 只允许上传安全文件(linux系统非可执行)
  180. image: gif,jpg,jpeg,bmp,png # 只允许上传图片
  181. audio: CD,OGG,MP3,ASF,WMA,WAV,MP3PRO,RM,REAL,APE,MODULE,MIDI,VQF # 只允许上传音频
  182. video: AVI,WMV,RM,RMVB,MPEG1,MPEG2,MPEG4(MP4),3GP,ASF,SWF,VOB,DAT,MOV,M4V,FLV,F4V,MKV,MTS,TS # 只允许上传视频
  183. office: txt,xls,xlsx,xlsm,xltx,xltm,xlsb,xlam,doc,docx,docm,dotx,dotm,ppt,pptx,pptm,ppsx,ppsm,potx,potm,ppam # 只允许上传office文件
  184. #JWT access token过期时间(access过期时间,并不是指需要重新登录的超时时间,而是指需要刷新重新获取access token的时间,超时登录的时间是3*EXPIRE_TIME,即refresh token的有效时时间)
  185. jwt.accessToken.expireTime: 86400 # 86400 ,24*3600* 24小时,单位秒
  186. #===============================#
  187. #====== license 信息 ================#
  188. #===============================#
  189. # 开发者全局信息配置,优先级高于数据库中的配置,如果不启用将采用数据库中配置
  190. devtool:
  191. enabled: false # 是否启用本地配置, true/false
  192. projectPath: /xx #后端生成路径
  193. frontPath: /xx # 前端生成路径
  194. packageName: com.jeeplus # 默认包名
  195. author: xx # 默认作者
  196. # 产品授权
  197. productId: Y20221228521
  198. license: 4DAE2B0CD929C8E0810F0657F251EA5DAB4DA3EF88E77EA7488BEA554B62D265A0BC223603AE2DB82C07DB7566A2E66BAF4F5DE866EDB9C98A87D2DBA971207F4AC5B169FB3A76DA14D99BA809B089A0C30393FE1290B852F1D96BD2EC256F1DB5FE05D730B4C59069343113FEE6C26DCD20D71DA2909E26AA7B6E422527205D