chore(api): align tenant storage config with admin
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 46s
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 46s
This commit is contained in:
@@ -69,6 +69,62 @@
|
|||||||
"Cors": {
|
"Cors": {
|
||||||
"Tenant": []
|
"Tenant": []
|
||||||
},
|
},
|
||||||
|
"Storage": {
|
||||||
|
"Provider": "TencentCos",
|
||||||
|
"CdnBaseUrl": "https://image-admin.laosankeji.com",
|
||||||
|
"TencentCos": {
|
||||||
|
"SecretId": "AKID52mHageV8ZnnY5NRL3Xq270fAcw2vb5R",
|
||||||
|
"SecretKey": "B8sPitsiEXcS4ScaMvGMErFOL3ZqsgFa",
|
||||||
|
"Region": "ap-beijing",
|
||||||
|
"Bucket": "saas-admin-1388556178",
|
||||||
|
"Endpoint": "https://cos.ap-beijing.myqcloud.com",
|
||||||
|
"CdnBaseUrl": "https://image-admin.laosankeji.com",
|
||||||
|
"UseHttps": true,
|
||||||
|
"ForcePathStyle": false
|
||||||
|
},
|
||||||
|
"QiniuKodo": {
|
||||||
|
"AccessKey": "QINIU_ACCESS_KEY",
|
||||||
|
"SecretKey": "QINIU_SECRET_KEY",
|
||||||
|
"Bucket": "takeout-files",
|
||||||
|
"DownloadDomain": "",
|
||||||
|
"Endpoint": "",
|
||||||
|
"UseHttps": true,
|
||||||
|
"SignedUrlExpirationMinutes": 30
|
||||||
|
},
|
||||||
|
"AliyunOss": {
|
||||||
|
"AccessKeyId": "OSS_ACCESS_KEY_ID",
|
||||||
|
"AccessKeySecret": "OSS_ACCESS_KEY_SECRET",
|
||||||
|
"Endpoint": "https://oss-cn-hangzhou.aliyuncs.com",
|
||||||
|
"Bucket": "takeout-files",
|
||||||
|
"CdnBaseUrl": "",
|
||||||
|
"UseHttps": true
|
||||||
|
},
|
||||||
|
"Security": {
|
||||||
|
"MaxFileSizeBytes": 10485760,
|
||||||
|
"AllowedImageExtensions": [
|
||||||
|
".jpg",
|
||||||
|
".jpeg",
|
||||||
|
".png",
|
||||||
|
".webp",
|
||||||
|
".gif"
|
||||||
|
],
|
||||||
|
"AllowedFileExtensions": [
|
||||||
|
".jpg",
|
||||||
|
".jpeg",
|
||||||
|
".png",
|
||||||
|
".webp",
|
||||||
|
".gif",
|
||||||
|
".pdf"
|
||||||
|
],
|
||||||
|
"DefaultUrlExpirationMinutes": 30,
|
||||||
|
"EnableRefererValidation": false,
|
||||||
|
"AllowedReferers": [
|
||||||
|
"https://admin.example.com",
|
||||||
|
"https://miniapp.example.com"
|
||||||
|
],
|
||||||
|
"AntiLeechTokenSecret": "ReplaceWithARandomToken"
|
||||||
|
}
|
||||||
|
},
|
||||||
"Otel": {
|
"Otel": {
|
||||||
"Endpoint": "",
|
"Endpoint": "",
|
||||||
"Sampling": "ParentBasedAlwaysOn",
|
"Sampling": "ParentBasedAlwaysOn",
|
||||||
|
|||||||
@@ -67,6 +67,62 @@
|
|||||||
"Cors": {
|
"Cors": {
|
||||||
"Tenant": []
|
"Tenant": []
|
||||||
},
|
},
|
||||||
|
"Storage": {
|
||||||
|
"Provider": "TencentCos",
|
||||||
|
"CdnBaseUrl": "https://saas2025-1388556178.cos.ap-beijing.myqcloud.com",
|
||||||
|
"TencentCos": {
|
||||||
|
"SecretId": "AKID52mHageV8ZnnY5NRL3Xq270fAcw2vb5R",
|
||||||
|
"SecretKey": "B8sPitsiEXcS4ScaMvGMErFOL3ZqsgFa",
|
||||||
|
"Region": "ap-beijing",
|
||||||
|
"Bucket": "saas2025-1388556178",
|
||||||
|
"Endpoint": "https://saas2025-1388556178.cos.ap-beijing.myqcloud.com",
|
||||||
|
"CdnBaseUrl": "https://saas2025-1388556178.cos.ap-beijing.myqcloud.com",
|
||||||
|
"UseHttps": true,
|
||||||
|
"ForcePathStyle": false
|
||||||
|
},
|
||||||
|
"QiniuKodo": {
|
||||||
|
"AccessKey": "QINIU_ACCESS_KEY",
|
||||||
|
"SecretKey": "QINIU_SECRET_KEY",
|
||||||
|
"Bucket": "takeout-files",
|
||||||
|
"DownloadDomain": "",
|
||||||
|
"Endpoint": "",
|
||||||
|
"UseHttps": true,
|
||||||
|
"SignedUrlExpirationMinutes": 30
|
||||||
|
},
|
||||||
|
"AliyunOss": {
|
||||||
|
"AccessKeyId": "OSS_ACCESS_KEY_ID",
|
||||||
|
"AccessKeySecret": "OSS_ACCESS_KEY_SECRET",
|
||||||
|
"Endpoint": "https://oss-cn-hangzhou.aliyuncs.com",
|
||||||
|
"Bucket": "takeout-files",
|
||||||
|
"CdnBaseUrl": "",
|
||||||
|
"UseHttps": true
|
||||||
|
},
|
||||||
|
"Security": {
|
||||||
|
"MaxFileSizeBytes": 10485760,
|
||||||
|
"AllowedImageExtensions": [
|
||||||
|
".jpg",
|
||||||
|
".jpeg",
|
||||||
|
".png",
|
||||||
|
".webp",
|
||||||
|
".gif"
|
||||||
|
],
|
||||||
|
"AllowedFileExtensions": [
|
||||||
|
".jpg",
|
||||||
|
".jpeg",
|
||||||
|
".png",
|
||||||
|
".webp",
|
||||||
|
".gif",
|
||||||
|
".pdf"
|
||||||
|
],
|
||||||
|
"DefaultUrlExpirationMinutes": 30,
|
||||||
|
"EnableRefererValidation": true,
|
||||||
|
"AllowedReferers": [
|
||||||
|
"https://admin.example.com",
|
||||||
|
"https://miniapp.example.com"
|
||||||
|
],
|
||||||
|
"AntiLeechTokenSecret": "ReplaceWithARandomToken"
|
||||||
|
}
|
||||||
|
},
|
||||||
"Otel": {
|
"Otel": {
|
||||||
"Endpoint": "",
|
"Endpoint": "",
|
||||||
"Sampling": "ParentBasedAlwaysOn",
|
"Sampling": "ParentBasedAlwaysOn",
|
||||||
|
|||||||
Reference in New Issue
Block a user