Skip to content

Commit

Permalink
remove webhook secret
Browse files Browse the repository at this point in the history
  • Loading branch information
aydinschwa committed Aug 8, 2024
1 parent 7903f36 commit 2fdb679
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ Create a `.env` file for the backend. There's a `.env.example` file to get you s
```
RECALL_API_KEY=[recall_api_key]
RECALL_REGION=[recall_region]
RECALL_WEBHOOK_SECRET=[recall_webhook_secret]
OPENAI_API_KEY=[openai_api_key]
```

Expand Down Expand Up @@ -94,14 +93,12 @@ Since this app uses webhooks to get the status of the bot in real time, we need
ngrok http --domain {YOUR_STATIC_DOMAIN} 3000
```

Now to create `RECALL_WEBHOOK_SECRET`, head to the [Recall.ai webhook dashboard](https://us-west-2.recall.ai/dashboard/webhooks/) and click **Add Endpoint**. The endpoint URL should look like this:
Now head to the [Recall.ai webhook dashboard](https://us-west-2.recall.ai/dashboard/webhooks/) and click **Add Endpoint**. The endpoint URL should look like this:

```bash
{YOUR_NGROK_STATIC_DOMAIN}/webhook/status_change
```

Copy the signing secret from the webhook's page and paste it into your `.env` file.

### Run The Backend

```bash
Expand Down
1 change: 0 additions & 1 deletion server/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
RECALL_API_KEY=
RECALL_REGION="us-west-2"
RECALL_WEBHOOK_SECRET=
OPENAI_API_KEY=
8 changes: 1 addition & 7 deletions server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ const dotenv = require("dotenv");

dotenv.config();

const requiredEnvVars = [
"RECALL_API_KEY",
"RECALL_REGION",
"RECALL_WEBHOOK_SECRET",
"OPENAI_API_KEY",
];
const requiredEnvVars = ["RECALL_API_KEY", "RECALL_REGION", "OPENAI_API_KEY"];

const validateEnvVars = (vars) => {
const missingVars = vars.filter((v) => !process.env[v]);
Expand All @@ -23,6 +18,5 @@ validateEnvVars(requiredEnvVars);
module.exports = {
recallApiKey: process.env.RECALL_API_KEY,
recallRegion: process.env.RECALL_REGION,
recallWebhookSecret: process.env.RECALL_WEBHOOK_SECRET,
openAiApiKey: process.env.OPENAI_API_KEY,
};

0 comments on commit 2fdb679

Please sign in to comment.