将 Shade 连接到 Backblaze
最后更新于
这有帮助吗?
这有帮助吗?
[
{
"corsRuleName": "web-any-origin",
"allowedOrigins": ["*"],
"allowedHeaders": ["*"],
"allowedOperations": [
"b2_download_file_by_id",
"b2_download_file_by_name",
"b2_upload_file",
"b2_upload_part",
"s3_get",
"s3_put",
"s3_delete",
"s3_head"
],
"maxAgeSeconds": 3000
}
]b2 bucket update --cors-rules "/path/to/cors.json" your-bucket-name-here allPublic{
"accountId": "---------",
"bucketId": "---------",
"bucketInfo": {},
"bucketName": "---------",
"bucketType": "allPublic",
"corsRules": [
{
"allowedHeaders": [
"*"
],
"allowedOperations": [
"s3_head",
"b2_download_file_by_id",
"b2_upload_part",
"b2_upload_file",
"s3_put",
"b2_download_file_by_name",
"s3_delete",
"s3_get"
],
"allowedOrigins": [
"*"
],
"corsRuleName": "web-any-origin",
"exposeHeaders": null,
"maxAgeSeconds": 3000
}
],
"defaultRetention": {
"mode": null
},
"defaultServerSideEncryption": {
"mode": "none"
},
"isFileLockEnabled": false,
"lifecycleRules": [],
"options": [
"s3"
],
"replication": {
"asReplicationDestination": null,
"asReplicationSource": null
},
"revision": 5
}