saltbo / zpan

A self-hosted cloud disk base on the cloud storage./ 一个基于云存储的网盘系统,用于自建私人网盘或企业网盘。
https://zpan.space
GNU General Public License v3.0
1.83k stars 236 forks source link

feat: add customPublicPath config compatible Image Hosting preview i… #59

Closed xyz-dev closed 3 years ago

xyz-dev commented 3 years ago

feat: add customPublicPath config compatible ImageHosting priview minio anonymous bucket policies

provider:
  name: s3
  bucket: zpan
  endpoint: http://xxx:9000
  customPublicPath: public
  accessKey: xxxx
  accessSecret: xxx

mc config host add minio http://xxx:9000 xxxx xxxx --api s3v4 mc policy set public minio/zpan/public

codecov[bot] commented 3 years ago

Codecov Report

Merging #59 (79799cd) into master (4bea406) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #59   +/-   ##
=======================================
  Coverage   34.86%   34.86%           
=======================================
  Files           8        8           
  Lines         304      304           
=======================================
  Hits          106      106           
  Misses        175      175           
  Partials       23       23           
Impacted Files Coverage Δ
provider/provider.go 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4bea406...79799cd. Read the comment docs.

saltbo commented 3 years ago

Thanks for your PR, but we plan to support the multi-storage on the next version. Image Hosting will update to File Hosting, and it can use an alone bucket