https://cos.<region>.myqcloud.com. MIRAGE derives this endpoint from your region automatically. COS bucket names include the APPID suffix (e.g. my-bucket-1250000000).
Credentials (CAM SecretId as the access key and SecretKey as the secret) are created the same way in both runtimes, see Tencent COS Credentials.
Node (server-side)
Config
Fields marked secret are redacted in snapshots.
Browser (presigned URLs)
TencentVFS is secret-free, your backend signs each operation using your CAM keys and returns a URL. COS accepts AWS Signature V4, so @aws-sdk/s3-request-presigner works, pointed at the COS endpoint.
Config
Fields marked secret are redacted in snapshots.
1. Server: sign URLs with the COS endpoint
2. Browser: wire it up
3. CORS
Configure CORS rules in the Tencent Cloud console: COS -> your bucket -> Security Management -> CORS. Allow your dev/production origins with methodsGET, PUT, HEAD, DELETE, POST, allowed headers *, and expose headers ETag, Content-Length, Content-Type, Last-Modified.
See the Tencent VFS docs for the equivalent Python wiring.
For write: conditional on this provider, see S3-compatible stores.
VFS.md
The VFS.md an agent reads with Tencent COS mounted at/<path>.
- Rendered
- Raw