https://github.com/tencent-rtc/trtc-usersig-workers
trtc usersig workers
https://github.com/tencent-rtc/trtc-usersig-workers
Last synced: 12 months ago
JSON representation
trtc usersig workers
- Host: GitHub
- URL: https://github.com/tencent-rtc/trtc-usersig-workers
- Owner: Tencent-RTC
- Created: 2024-01-10T06:47:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-16T07:54:16.000Z (over 2 years ago)
- Last Synced: 2024-12-26T03:25:05.718Z (over 1 year ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# trtc-usersig-workers
trtc usersig service run on cloudflare workers
### Local Dev
1、Config your sdkappid and secret in wrangler.toml
```yaml
[vars]
SDKAPPID = 14xxxxxxxx
SECRET = "xxxxxxxxxx"
```
2、Start local server
```shell
npm install
npm run dev
```
### Deploy to cloudflare workers
1、Config your sdkappid and secret in wrangler.toml
```yaml
[vars]
SDKAPPID = 14xxxxxxxx
SECRET = "xxxxxxxxxx"
```
2、You need to have a cloudflare account
3、Deploy
```shell
npm run deploy
```
You should get some workers url like `https://trtc-usersig-workers.xxxxxxx.workers.dev`