-
Notifications
You must be signed in to change notification settings - Fork 15
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
建议HTTPS单独设置开关而非根据endpoint来解析 #18
Comments
是的。需要在endpoint前增加https才能上传成功。即 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
根据README中的示例配置:
会导致上传失败。错误日志如下:
反复检查,关键配置参数填的都没问题。然后想是不是网络问题。打开Clash日志查看,发现上传时走的端口是80。
但是Backblaze B2是禁止http访问的,必须走https(同样的,在Cloudflare里面需要把SSL设置为【严格】)。
然后进入
src/uploader.ts
中查看,发现如下代码:发现走不走443端口是根据endpoint配置来的。parse出来是https才走443。
然后把端口前面加上
https://
才能正常上传。这感觉不太符合直觉。因为S3的URL是这样的:
上传的url的hostname前面是加上了bucketName的。不是直接与
https://
相连。建议像
bucketEndpoint
一样给个开关来控制,不要根据url去parse。以上。
The text was updated successfully, but these errors were encountered: