Skip to content

Commit

Permalink
Merge pull request #115 from cloudflare/Update-installation-instructions
Browse files Browse the repository at this point in the history
Update setup instructions
  • Loading branch information
third774 authored Sep 19, 2024
2 parents 6ec59b2 + b00d694 commit d9246fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Open up [http://127.0.0.1:8787](http://127.0.0.1:8787) and you should be ready t
wrangler login
```

2. Update the `account_id` and `CALLS_APP_ID` in `wrangler.toml` to use your own Cloudflare Account ID and Calls App ID
2. Update `CALLS_APP_ID` in `wrangler.toml` to use your own Calls App ID

3. You will also need to set the token as a secret by running:

Expand All @@ -64,7 +64,9 @@ or to programmatically set the secret, run:
echo REPLACE_WITH_YOUR_SECRET | wrangler secret put CALLS_APP_SECRET
```

4. Then you can run
4. Optionally, you can also use [Cloudflare's TURN Service](https://developers.cloudflare.com/calls/turn/) by setting the `TURN_SERVICE_ID` variable in `wrangler.toml` and `TURN_SERVICE_TOKEN` secret using `wrangler secret put TURN_SERVICE_TOKEN`

5. Finally you can run the following to deploy

```sh
npm run deploy
Expand Down
3 changes: 1 addition & 2 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name = "orange-meets"
# https://developers.cloudflare.com/workers/platform/compatibility-dates
compatibility_date = "2024-06-20"
account_id = "a67e14daa5f8dceeb91fe5449ba496eb"
main = "./build/index.js"
compatibility_flags = ["nodejs_compat"]

[site]
bucket = "./public"

[vars]
CALLS_APP_ID = "f0ea263009299383d09d44b9fad5316c"
CALLS_APP_ID = "YOUR_CALLS_SFU_APP_ID_HERE"

[durable_objects]
bindings = [
Expand Down

0 comments on commit d9246fa

Please sign in to comment.