bootstrap.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # Tomcat
  2. server:
  3. port: 9258
  4. servlet:
  5. context-path:
  6. # Spring
  7. spring:
  8. main:
  9. allow-bean-definition-overriding: true
  10. servlet:
  11. multipart:
  12. max-file-size: 100MB
  13. max-request-size: 100MB
  14. application:
  15. # 应用名称
  16. name: jeeplus-psi-management
  17. profiles:
  18. # 环境配置
  19. active: pro
  20. cloud:
  21. nacos:
  22. discovery:
  23. # 服务注册地址
  24. server-addr: ${NACOS_ADDR:127.0.0.1:8848}
  25. # 命名空间
  26. namespace: ${spring.profiles.active}
  27. username: nacos
  28. password: jsxgpassword
  29. config:
  30. # 配置中心地址
  31. server-addr: ${NACOS_ADDR:127.0.0.1:8848}
  32. # 配置文件格式
  33. file-extension: yml
  34. # 共享配置
  35. shared-configs:
  36. - application.${spring.cloud.nacos.config.file-extension}
  37. # 命名空间
  38. namespace: ${spring.profiles.active}
  39. username: ${spring.cloud.nacos.discovery.username}
  40. password: ${spring.cloud.nacos.discovery.password}
  41. auth:
  42. plugin:
  43. nacos:
  44. token:
  45. secret:
  46. key: cCtJSWRxbW1xT3FmZkh1RTBpdTltYkM5ZlNSaTRyQ1RiSzJzV1pweEYycz0=
  47. #ribbon的超时时间
  48. ribbon:
  49. ConnectTimeout: 60000 # 连接超时时间(ms)
  50. ReadTimeout: 60000 # 通信超时时间(ms)
  51. hystrix:
  52. command:
  53. default:
  54. execution:
  55. isolation:
  56. thread:
  57. timeoutInMillisecond: 60000 # 熔断超时时长:60000ms
  58. #上传文件绝对路径, 路径中不允许包含“userfiles”
  59. userfiles:
  60. basedir: # 文件上传路径,可以留空
  61. allowedType: file # 允许上传的文件类型, all, file ,image, audio, video, office
  62. extensions:
  63. all: all # 允许上传所有类型文件
  64. 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系统非可执行)
  65. image: gif,jpg,jpeg,bmp,png # 只允许上传图片
  66. audio: CD,OGG,MP3,ASF,WMA,WAV,MP3PRO,RM,REAL,APE,MODULE,MIDI,VQF # 只允许上传音频
  67. video: AVI,WMV,RM,RMVB,MPEG1,MPEG2,MPEG4(MP4),3GP,ASF,SWF,VOB,DAT,MOV,M4V,FLV,F4V,MKV,MTS,TS # 只允许上传视频
  68. office: txt,xls,xlsx,xlsm,xltx,xltm,xlsb,xlam,doc,docx,docm,dotx,dotm,ppt,pptx,pptm,ppsx,ppsm,potx,potm,ppam # 只允许上传office文件
  69. #oss配置
  70. config:
  71. accessory:
  72. type: minIO #local, aliyun, minIO
  73. baseDir: file
  74. local:
  75. location: d:\\accessory
  76. aliyun:
  77. aliyunUrl: http://oss.gangwaninfo.com
  78. aliyunDownloadUrl: http://cdn.gangwaninfo.com
  79. endpoint: http://oss-cn-hangzhou.aliyuncs.com
  80. accessKeyId: LTAI5tKa6kzGr5EyPWJB4EcD
  81. accessKeySecret: arHxB7ZPhizrBYf4844TtyaRctPMgW
  82. bucketName: xg-pg
  83. minIO:
  84. endpoint:
  85. accessKey:
  86. secretKey:
  87. bucketName:
  88. #阿里云文件夹路径
  89. aliyun_directory: attachment-file/assess
  90. #签章阿里云文件bucketName
  91. qzBucketName: xg-qz