Deploy ExportX upload service using Tencent Cloud SCF (Serverless Cloud Function) to enjoy Serverless advantages such as pay-as-you-go and automatic scaling.
Prerequisites
Before starting, please ensure you have:
- Tencent Cloud account with real-name verification
- Created COS bucket or prepared to use other S3-compatible storage
Deployment Method
Download Cloud Function ZIP
We have packaged the source code and dependencies into a zip file, which you can download and use directly [Download scf-package.zip]
Create a Cloud Function
Following the screenshots, create a cloud function in the Cloud Function console, select zip package upload, and choose the zip package we provided.
Remember to enable public network access
Environment Variable Generation
We provide an environment variable generator for you to conveniently configure bucket information. Moreover, you can also configure allowed upload paths and user whitelist to protect your upload endpoint.
Environment Variable Generator
Configure Cloud Function Environment Variables
Scroll to the environment variables section and click "Import"
Fill in the environment variables from the generator
Save and wait for deployment to complete.
Get the public network link
Configure Upload Endpoint in ExportX
All done!