本服务实现 AWS Signature V4 的 S3 子集(path-style 风格),所有支持自定义 S3 端点的软件 (rclone、AWS CLI、图床、CMS、备份工具等)都可以把它当作对象存储直接使用。
连接参数
节点地址(endpoint):{{ endpoint }}
桶(bucket):store(可在 data/config.json 配置桶名映射)
accessKey / accessSecret:本页「凭证管理」签发的一对 AK/SK
region:us-east-1(服务端兼容任意 region 设置)
rclone 配置(%USERPROFILE%\.config\rclone\rclone.conf)
[s3store]
type = s3
provider = Other
access_key_id = AK你的AK
secret_access_key = 你的SK
endpoint = {{ endpoint }}
# 常用命令(remote 名:桶名/路径) rclone ls s3store:store/ rclone copy D:\photos s3store:store/photos rclone copy s3store:store/backup D:\backup
AWS CLI
aws configure set default.s3.addressing_style path
aws --endpoint-url {{ endpoint }} s3 ls s3://store/ --region us-east-1
aws --endpoint-url {{ endpoint }} s3 cp big.zip s3://store/backup/ --region us-east-1
预签名 URL(/api/presign)
浏览器等无法本地计算 SigV4 的环境,用 AK/SK 换取预签名 URL 后即可直传/下载:
curl -X POST {{ endpoint }}/api/presign \
-H "Content-Type: application/json" \
-d '{"ak":"AK...","sk":"...","method":"PUT","bucket":"store","key":"a.txt","expires":600}'
# 返回 {"url":"..."},随后 curl -X PUT --data-binary @a.txt "返回的url"