diff --git a/docs/provider/storage/amazon-s3.md b/docs/provider/storage/amazon-s3.md index 8c29821cf..3cad431e4 100644 --- a/docs/provider/storage/amazon-s3.md +++ b/docs/provider/storage/amazon-s3.md @@ -27,10 +27,25 @@ Edit the object ownership, check **ACLs enabled**. ### Config Casdoor +| Name | Name in amazon | is required | +|---------------------|-------------------|-------------| +| Client ID | Access key | required | +| Client secret | Secret access key | required | +| Endpoint | Endpoint | required | +| Endpoint (intranet) | VPC endpoint | | +| Bucket | Bucket name | required | +| Path prefix | | | +| Domain | CloudFront domain | | +| Region ID | AWS region | required | + Fill the necessary information, includes the `Client ID` and `Client Secret` obtained from the `access key` and `secret access key` in the previous step. You can refer to this documentation for information on the formatting of the `endpoint`: [Website endpoints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteEndpoints.html) ![amazon s3 provider](/img/providers/storage/amazonProvider.png) +### (Optional) Use VPC + +You can refer to the official documentation for configuration: [Access AWS services through AWS PrivateLink](https://docs.aws.amazon.com/vpc/latest/privatelink/privatelink-access-aws-services.html) + ### (Optional) Use CloudFront distribution Follow the document to config CloudFront: [config CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GettingStarted.SimpleDistribution.html) diff --git a/docs/provider/storage/azure.md b/docs/provider/storage/azure.md index 259686835..ddeca97c4 100644 --- a/docs/provider/storage/azure.md +++ b/docs/provider/storage/azure.md @@ -19,7 +19,7 @@ Select the Azure Blob as the storage type. ![azureSelect.png](/img/providers/sto ### Step2. Fill the necessary information in Casdoor -There are three required fields. `Client ID`, `Client secret`, `Bucket`. The relationship corresponding to the Azure Blob account is as follows: +There are four required fields. `Client ID`, `Client secret`, `Endpoint`, `Bucket`. The relationship corresponding to the Azure Blob account is as follows: | Name | Name in Azure | is required | |---------------------|-----------------|-------------| diff --git a/docs/provider/storage/tencentCloudCOS.md b/docs/provider/storage/tencentCloudCOS.md new file mode 100644 index 000000000..5b5731956 --- /dev/null +++ b/docs/provider/storage/tencentCloudCOS.md @@ -0,0 +1,44 @@ +--- +title: Tencent Cloud COS +description: Using Tencent Cloud COS as a storage provider for Casdoor +keywords: [Tencent Cloud COS, storage, provider] +authors: [UsherFall] +--- + +:::note + +This is an example of **Tencent Cloud COS**. + +::: + +### Fill the necessary information in Casdoor + +There are five required fields. `Client ID`, `Client secret`, `Endpoint`, `Bucket`, `Region ID`. The relationship corresponding to the Tencent Cloud COS account is as follows: + +| Name | Name in Tencent | is required | +|---------------------|-----------------|-------------| +| Client ID | SecretId | required | +| Client secret | SecretKey | required | +| Endpoint | Endpoint | required | +| Bucket | BucketName | required | +| Path prefix | | | +| Domain | CDNDomain | | +| Region ID | Region | required | + +#### Tencent Cloud cos information + +- SecretId and SecretKey + +![](/img/providers/storage/tencentKey.png) + +- Endpoint, BucketName and Region + +![](/img/providers/storage/tencentConfig.png) + +- (Optional) CDNDomain + +You can refer to the official documentation for configuration: [config CDN](https://cloud.tencent.com/document/product/436/18670#.E5.AF.B9.E8.87.AA.E5.AE.9A.E4.B9.89.E5.9F.9F.E5.90.8D.E9.85.8D.E7.BD.AE-cdn-.E5.8A.A0.E9.80.9F) + +#### Config Casdoor provider + +![](/img/providers/storage/tencentResult.png) diff --git a/sidebars.js b/sidebars.js index 126e79644..698a08c21 100644 --- a/sidebars.js +++ b/sidebars.js @@ -184,6 +184,7 @@ module.exports = { "provider/storage/azure", "provider/storage/minio", "provider/storage/aliyun-oss", + "provider/storage/tencentCloudCOS", ], }, { diff --git a/static/img/providers/storage/amazonProvider.png b/static/img/providers/storage/amazonProvider.png index 44739bb5c..9a8000266 100644 Binary files a/static/img/providers/storage/amazonProvider.png and b/static/img/providers/storage/amazonProvider.png differ diff --git a/static/img/providers/storage/tencentConfig.png b/static/img/providers/storage/tencentConfig.png new file mode 100644 index 000000000..1786b06a6 Binary files /dev/null and b/static/img/providers/storage/tencentConfig.png differ diff --git a/static/img/providers/storage/tencentKey.png b/static/img/providers/storage/tencentKey.png new file mode 100644 index 000000000..dac3580ce Binary files /dev/null and b/static/img/providers/storage/tencentKey.png differ diff --git a/static/img/providers/storage/tencentResult.png b/static/img/providers/storage/tencentResult.png new file mode 100644 index 000000000..05e195a75 Binary files /dev/null and b/static/img/providers/storage/tencentResult.png differ