application-production.yml 7.5 KB

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