Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add aliyun oss storage config #343

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

ihmily
Copy link

@ihmily ihmily commented Jul 4, 2024

新增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秒,当使用预签名图片地址时生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant