shoulder-storage-center.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. shoulder:
  2. nginx:
  3. ip: ${spring.cloud.client.ip-address} # 正式环境需要将该ip设置成nginx对应的 公网ip
  4. port: 10000 # 正式环境需要将该ip设置成nginx对应的 公网端口
  5. swagger:
  6. enabled: true
  7. docket:
  8. file:
  9. title: 存储服务
  10. base-package: cn.itlym.shoulder.platform.storage.controller
  11. general:
  12. title: 通用模块
  13. base-package: cn.itlym.shoulder.common.controller
  14. file:
  15. type: LOCAL # FAST_DFS LOCAL
  16. storage-path: /data/projects/uploadfile/file/ # 文件存储路径 ( 某些版本的 window 需要改成 D:\\data\\projects\\uploadfile\\file\\ )
  17. uriPrefix: http://${shoulder.nginx.ip}:${shoulder.nginx.port}/file/ # 文件访问 需要通过这个uri前缀进行访问
  18. inner-uri-prefix: null # 内网的url前缀
  19. down-by-id: http://${shoulder.nginx.ip}:${shoulder.nginx.port}/api/file/attachment/download?ids[]=%s
  20. down-by-biz-id: http://${shoulder.nginx.ip}:${shoulder.nginx.port}/api/file/attachment/download/biz?bizIds[]=%s
  21. down-by-url: http://${shoulder.nginx.ip}:${shoulder.nginx.port}/api/file/attachment/download/url?url=%s&filename=%s
  22. ali:
  23. # 请填写自己的阿里云存储配置
  24. uriPrefix: http://test.oss-cn-shenzhen.aliyuncs.com/
  25. bucket-name: test
  26. endpoint: http://oss-cn-shenzhen.aliyuncs.com
  27. access-key-id: test
  28. access-key-secret: test
  29. #FAST_DFS配置
  30. fdfs:
  31. soTimeout: 1500
  32. connectTimeout: 600
  33. thumb-image:
  34. width: 150
  35. height: 150
  36. tracker-list:
  37. - 127.0.0.1:12345
  38. pool:
  39. #从池中借出的对象的最大数目
  40. max-total: 128
  41. max-wait-millis: 100
  42. jmx-name-base: 1
  43. jmx-name-prefix: 1
  44. server:
  45. port: 10000