application-prod.yml 5.6 KB

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