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

自定义域名无法上传 #37

Open
Mad-hu opened this issue Jul 13, 2023 · 1 comment
Open

自定义域名无法上传 #37

Mad-hu opened this issue Jul 13, 2023 · 1 comment

Comments

@Mad-hu
Copy link

Mad-hu commented Jul 13, 2023

我们做了一个代理https://xx-obs.obs.cn-north-4.myhuaweicloud.com/ -》 https://**xx-obs.xx.life/
使用 xx-obs.obs.cn-north-4.myhuaweicloud.com,上传和下载都没问题。
通过xx-obs.xx.life域名下载可以,上传会报下边的错误。我们使用aksk的方式上传,设置了is_cname: true
image
image

@Mad-hu
Copy link
Author

Mad-hu commented Jul 13, 2023

const obsClient = new ObsClient({
    access_key_id: Decrypt(ak),
    secret_access_key: Decrypt(sk),
    server,    // https://xx-obs.xx.life/
    is_cname: true
  });
  await obsClient.uploadFile({
    Bucket: bucket,
    Key: savePath,
    SourceFile: file,
    TaskNum: 5,
    ProgressCallback: processCallback,
    ACL: 'public-read-write',
    
  });

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

No branches or pull requests

1 participant