application.yml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. spring:
  2. application:
  3. name: jnpf-boot
  4. profiles:
  5. # 指定环境配置 dev(开发环境-默认)、test(测试环境)、preview(预生产)、prod(生产环境)
  6. active: dev
  7. servlet:
  8. multipart: #文件传输配置
  9. max-file-size: 100MB #单个数据大小限制
  10. max-request-size: 100MB #请求总数据大小限制
  11. enabled: true #是否启用分段上传支持
  12. mvc:
  13. #csrf-origins: ${config.FrontDomain}
  14. cors:
  15. # 允许跨域的域名
  16. #allowed-origins: ${config.FrontDomain}
  17. # 允许跨域的域名正则匹配 如需全部匹配设置为 '**', 因为包含凭据的请求不允许直接写* 这个写法可以直接返回当前请求域名
  18. allowed-origin-patterns: '**'
  19. # 允许跨域的请求方法 GET, POST, PUT, DELETE
  20. allowed-methods: "*"
  21. # 允许跨域的头部信息 Content-Type, Authorization
  22. allowed-headers: "*"
  23. options-max-age: 18000
  24. headers:
  25. server-name: ''
  26. x-frame-options: sameorigin
  27. x-content-type-options: disabled
  28. x-xss-protection: enabled_mode_block
  29. hiddenmethod: #隐式方法过滤器
  30. filter:
  31. enabled: true #默认开启。开启以支持:PUT,DELETE表单提交方法
  32. jackson: #序列化和反序列化json框架
  33. serialization:
  34. write-dates-as-timestamps: true #是否写入日期时间时间戳格式
  35. time-zone: GMT+8 #指定日期格式化时区
  36. main:
  37. allow-bean-definition-overriding: true #允许同名bean后者覆盖,默认:true
  38. allow-circular-references: true #允许Bean相互引用,默认:false
  39. config:
  40. # ===============静态资源目录映射==================
  41. WebAnnexFilePath: WebAnnexFile
  42. DataBackupFilePath: DataBackupFile
  43. TemporaryFilePath: TemporaryFile
  44. SystemFilePath: SystemFile
  45. TemplateFilePath: TemplateFile
  46. EmailFilePath: EmailFile
  47. DocumentFilePath: DocumentFile
  48. DocumentPreviewPath: DocumentPreview
  49. UserAvatarFilePath: UserAvatar
  50. IMContentFilePath: IMContentFile
  51. MPMaterialFilePath: MPMaterial
  52. TemplateCodePath: TemplateCode
  53. BiVisualPath: BiVisualPath
  54. # ===============功能格式限制==================
  55. MPUploadFileType: bmp,png,jpeg,jpg,gif,mp3,wma,wav,amr,mp4
  56. WeChatUploadFileType: jpg,png,doc,docx,ppt,pptx,xls,xlsx,pdf,txt,rar,zip,csv,amr,mp4
  57. AllowUploadImageType: jpg,gif,png,bmp,jpeg,tiff,psd,swf,svg,pcx,dxf,wmf,emf,lic,eps,tga #允许上传图片类型
  58. AllowUploadFileType: jpg,gif,png,bmp,jpeg,doc,docx,ppt,pptx,xls,xlsx,pdf,txt,rar,zip,csv,mp3,aac #允许上传文件类型
  59. AllowPreviewFileType: doc,docx,xls,xlsx,ppt,pptx,pdf,jpg,gif,png,bmp,jpeg #允许预览文件类型
  60. PreviewType: kkfile #文件预览方式 (1.yozo 2.kkfile)默认使用kkfile
  61. kkFileUrl: http://192.168.10.196:30090/FileServer/ #kkfile文件预览服务地址
  62. ApiDomain: http://192.168.10.196:30000 #后端域名(文档预览中使用)
  63. FrontDomain: http://192.168.10.196:3100 #前端域名(文档预览中使用)
  64. AppDomain: http://127.0.0.1:8080 #app/h5端域名配置(文档预览中使用)
  65. FlowDomain: http://192.168.10.196:31000 #流程引擎接口地址
  66. CodeAreasName: example #代码生成器模块命名
  67. #===================== unipush =====================
  68. AppPushUrl: https://8e84eea8-6922-4033-8e86-67ad7442e692.bspapp.com/unipush
  69. #===================== 多租户配置 =====================
  70. MultiTenancy: false #是否开启
  71. MultiTenancyUrl: http://127.0.0.1:30006/api/tenant/DbName/ #多租户项目地址
  72. #===================== 系统及错误报告反馈相关 =====================
  73. SoftName: jnpf-java-boot #项目名
  74. SoftFullName: JNPF快速开发平台 #项目全名
  75. SoftVersion: v5.1.0 #版本号
  76. RecordLog: true #系统日志启用
  77. ErrorReport: false #软件错误报告
  78. ErrorReportTo: surrpot@yinmaisoft.com #软件错误报告接收者
  79. IgexinEnabled: true #推送启动
  80. #===================== APP =====================
  81. AppVersion: v5.1.0 #APP版本号
  82. IgexinAppid: HLFY9T2d1z7MySY8hwGwh4 #APPID:应用的唯一标识
  83. IgexinAppkey: 6Uiduugq648YDChhCjAt59 #APPKEY:公匙(相当于账号)
  84. IgexinMastersecret: pEyQm156SJ9iS7PbyjLCZ6 #Mastersecret:私匙(相当于密码)
  85. AppUpdateContent: ; #APP更新内容
  86. #===================== 永中office在线预览配置 =====================
  87. YozoDomain: //dcsapi.com/ #永中api域名
  88. YozoDomainKey: 57462250284462899305150 #域名key
  89. YozoCloudDomain: //dmc.yozocloud.cn #云预览
  90. YozoAppId: yozoAgR41jgC0062 #appid
  91. YozoAppKey: fc3134a9ba8bc6f4c69d635f9adf #app秘钥
  92. YozoEditDomain: //eic.yozocloud.cn #云编辑
  93. #===================== 系统功能配置 =====================
  94. EnableLogicDelete: false #是否开启逻辑删除
  95. CodeCertificateTimeout: 180 # 秒
  96. check-file-pdf: false #检查上传的PDF文件安全
  97. security:
  98. # AES加密秘钥
  99. security-key: EY8WePvjM5GGwQzn
  100. # 是否开启接口鉴权
  101. enable-pre-auth: true
  102. # 接口加密
  103. enable-rest-encrypt: true
  104. # 事件配置
  105. event:
  106. # 默认时间发布、监听渠道: redis, mq
  107. event-publish-type: redis
  108. # Redis监听模式:current, all
  109. redis-publish-type: current
  110. # 接口放行地址 与GatewayWhite中的默认URL合并
  111. gateway:
  112. # 禁止访问接口
  113. block-url:
  114. ## 配置示例
  115. #- /api/message/Notice
  116. #- /api/permission/Users/*
  117. # 不验证Token, 放行接口(默认记录日志)
  118. white-url:
  119. # # 配置示例
  120. #- /api/message/Notice
  121. #- /api/permission/Users/*
  122. # 放行接口(不记录日志)
  123. exclude-url:
  124. # # 配置示例
  125. #- /api/message/Notice
  126. #- /api/permission/Users/*
  127. # 入站IP(禁止配置以外的IP访问block-url配置的接口)
  128. white-ip:
  129. #- 192.168.0.10
  130. #- 192.168.0.20
  131. # 日志配置
  132. logging:
  133. config: classpath:logback-spring.xml
  134. level:
  135. #自定义第三方包名日志等级
  136. # 解除注释后Druid连接池打印SQL语句
  137. druid.sql.Statement: debug
  138. # druid.sql.DataSource: debug
  139. # druid.sql.Connection: debug
  140. # druid.sql.ResultSet: debug
  141. log:
  142. level:
  143. # 等级 TRACE,DEBUG,INFO,WARN,ERROR(不区分大小写)
  144. root: info
  145. path: log/${spring.application.name}