



git clone https://github.com/Tencent-RTC/TUILiveKit_Managercd TUILiveKit_Managernpm install
packages/server/config/.env:SDK_APP_ID=1400000001 # Replace with your SDKAppIDSECRET_KEY=xxxxxxx # Replace with your SecretKeyUSER_ID=administrator # Replace with your admin userIDDOMAIN=console.tim.qq.com # Replace with your domain based on region
npm run start:server
packages/server/config/.env. The system supports two storage providers:STORAGE_PROVIDER=cosCOS_SECRET_ID=your_secret_id # Tencent Cloud API SecretIdCOS_SECRET_KEY=your_secret_key # Tencent Cloud API SecretKeyCOS_BUCKET=your-bucket-1250000000 # COS bucket nameCOS_REGION=ap-guangzhou # Bucket regionCOS_CDN_DOMAIN=web.sdk.qcloud.com # (Optional) CDN acceleration domainCOS_PATH_PREFIX=uploads # (Optional) Storage path prefix
multipart/form-data.STORAGE_PROVIDER=customCUSTOM_UPLOAD_URL=https://your-api.com/upload # Upload endpoint (required)CUSTOM_ACCESS_DOMAIN=https://cdn.your-api.com # (Optional) File access domain prefixCUSTOM_UPLOAD_FIELD=file # (Optional) Upload field name, default: fileCUSTOM_RESPONSE_URL_FIELD=data.url # (Optional) JSON path for URL in response, default: data.urlCUSTOM_AUTH_HEADER=Authorization: Bearer token # (Optional) Custom auth headerCUSTOM_PATH_PREFIX=uploads # (Optional) Storage path prefix
{ "code": 0, "data": { "url": "https://cdn.example.com/xxx.png" } }.YourProvider.js in packages/server/src/services/storage/, extending StorageProvider.PROVIDER_MAP in packages/server/src/services/storage/index.js.STORAGE_PROVIDER=your_key in .env with corresponding config.packages/vue/.env:VITE_API_BASE_URL=http://localhost:9000/api
npm run dev:vue
vue and common directories. Refer to the source code structure for extensions.VITE_API_BASE_URL, run npm run build. Deploy the build output to a static server like Nginx, or place it in the server's public directory to share the port. In this case, set VITE_API_BASE_URL=/api to use relative paths..env.production with the cloud function URL, then run pnpm run build:vue at the root. Upload the build output to COS or EdgeOne Pages.VITE_API_BASE_URL=https://your-scf-url.com/api
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback