application-prod2.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. server:
  2. port: 8804
  3. ip: 39.97.120.42
  4. servlet:
  5. context-path: /jeecg-boot
  6. compression:
  7. enabled: true
  8. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  9. management:
  10. endpoints:
  11. web:
  12. exposure:
  13. include: metrics,httptrace
  14. spring:
  15. servlet:
  16. multipart:
  17. max-file-size: -1
  18. max-request-size: -1
  19. mail:
  20. host: smtp.163.com
  21. username: jeecgos@163.com
  22. password: ??
  23. properties:
  24. mail:
  25. smtp:
  26. auth: true
  27. starttls:
  28. enable: true
  29. required: true
  30. ## quartz定时任务,采用数据库方式
  31. quartz:
  32. job-store-type: jdbc
  33. #json 时间戳统一转换
  34. jackson:
  35. date-format: yyyy-MM-dd HH:mm:ss
  36. time-zone: GMT+8
  37. aop:
  38. proxy-target-class: true
  39. #配置freemarker
  40. freemarker:
  41. # 设置模板后缀名
  42. suffix: .ftl
  43. # 设置文档类型
  44. content-type: text/html
  45. # 设置页面编码格式
  46. charset: UTF-8
  47. # 设置页面缓存
  48. cache: false
  49. prefer-file-system-access: false
  50. # 设置ftl文件路径
  51. template-loader-path:
  52. - classpath:/templates
  53. # 设置静态文件路径,js,css等
  54. mvc:
  55. static-path-pattern: /**
  56. resource:
  57. static-locations: classpath:/static/,classpath:/public/
  58. autoconfigure:
  59. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  60. datasource:
  61. url: jdbc:mysql://172.30.0.4:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
  62. username: hcst
  63. password: test@20190531
  64. driver-class-name: com.mysql.jdbc.Driver
  65. druid:
  66. stat-view-servlet:
  67. loginUsername: admin
  68. loginPassword: hcst2016
  69. enabled: true
  70. web-stat-filter:
  71. enabled: true
  72. # remove-abandoned: false
  73. dynamic:
  74. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  75. # 连接池的配置信息
  76. # 初始化大小,最小,最大
  77. connection-init-sql: set names utf8mb4
  78. initial-size: 5
  79. min-idle: 5
  80. maxActive: 20
  81. # 配置获取连接等待超时的时间
  82. maxWait: 60000
  83. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  84. timeBetweenEvictionRunsMillis: 60000
  85. # 配置一个连接在池中最小生存的时间,单位是毫秒
  86. minEvictableIdleTimeMillis: 300000
  87. validationQuery: SELECT 1 FROM DUAL
  88. testWhileIdle: true
  89. testOnBorrow: false
  90. testOnReturn: false
  91. # 打开PSCache,并且指定每个连接上PSCache的大小
  92. poolPreparedStatements: true
  93. maxPoolPreparedStatementPerConnectionSize: 20
  94. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  95. filters: stat,slf4j
  96. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  97. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  98. datasource:
  99. master:
  100. url: jdbc:mysql://172.30.0.4:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
  101. username: hcst
  102. password: test@20190531
  103. driver-class-name: com.mysql.jdbc.Driver
  104. # 多数据源配置
  105. #multi-datasource1:
  106. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
  107. #username: root
  108. #password: root
  109. #driver-class-name: com.mysql.jdbc.Driver
  110. #redis 配置
  111. redis:
  112. database: 0
  113. host: 172.30.0.17
  114. lettuce:
  115. pool:
  116. max-active: 8 #最大连接数据库连接数,设 0 为没有限制
  117. max-idle: 8 #最大等待连接中的数量,设 0 为没有限制
  118. max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  119. min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
  120. shutdown-timeout: 100ms
  121. password: foobared
  122. port: 6379
  123. #mybatis plus 设置
  124. mybatis-plus:
  125. mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml,classpath*:cn/com/ctop/**/xml/*Mapper.xml
  126. global-config:
  127. # 关闭MP3.0自带的banner
  128. banner: false
  129. db-config:
  130. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  131. id-type: 4
  132. # 默认数据库表下划线命名
  133. table-underline: true
  134. # configuration:
  135. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  136. #jeecg专用配置
  137. jeecg:
  138. elasticsearch:
  139. cluster-nodes:
  140. check-enabled: false
  141. uploadType:
  142. oss:
  143. endpoint:
  144. accessKey:
  145. secretKey:
  146. bucketName:
  147. staticDomain:
  148. sms:
  149. accessKeyId:
  150. accessKeySecret:
  151. minio:
  152. minio_url:
  153. minio_name:
  154. minio_pass:
  155. bucketName:
  156. ffmpeg:
  157. bin: ffmpeg
  158. path:
  159. #文件上传根目录 设置
  160. upload: /data/upload
  161. #webapp文件路径
  162. webapp: /data/webapp
  163. video-upload: /data/upload/video/
  164. image-upload: /data/upload/image/
  165. chrome-driver: /usr/bin/chromedriver
  166. csv-upload: /data/upload/csv/
  167. bak-database-file: /data/data/bak/
  168. report-history: /data/upload/report/history/
  169. report-daily: /data/upload/report/daily/
  170. kuaishou:
  171. group-control:
  172. path: http://39.106.184.70
  173. port: 4723
  174. logging:
  175. level:
  176. root: info
  177. config: classpath:logback-prod.xml
  178. chrome:
  179. script:
  180. clean: sh /data/webapp/cleanProcess.sh
  181. cas:
  182. prefixUrl:
  183. oss:
  184. replace:
  185. replace-value: oss-cn-beijing
  186. replace-old-value: oss-cn-beijing
  187. download: /data/file/video/