midjourney-proxy icon indicating copy to clipboard operation
midjourney-proxy copied to clipboard

feat: add aliyun oss storage config

Open ihmily opened this issue 1 year ago • 0 comments

新增oss图片地址返回字段,任务完成后上传图片到阿里云oss存储,返回云端oss图片地址

oss:
  config:
    oss-save: false
    access-key-id: LTAI5tAzZJnSy3P8t75dGCc
    access-key-secret: Hmjs1mNo9qBe3E0TIyY2nsPoD0o5hc
    endpoint: https://oss-cn-hangzhou.aliyuncs.com
    bucket-name: midjoureny-images
    to-sign: true
    prefix-path: mj
    expiration-seconds: 3600

账号字段说明

名称 非空 描述
oss-save 是否保存到阿里云oss,默认false
access-key-id 阿里云存储 AccessKeyID
access-key-secret 阿里云存储 AccessKeySecret
endpoint 阿里云oss节点地址
bucket-name 存储桶名称
to-sign 是否使用预签名图片地址,默认false
prefix-path 存储路径
expiration-seconds 签名oss图片地址的过期时间,默认3000秒,当使用预签名图片地址时生效

ihmily avatar Jul 04 '24 10:07 ihmily