diff --git a/README.md b/README.md index 2b04dcc..f543c1b 100644 --- a/README.md +++ b/README.md @@ -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] ``` @@ -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 diff --git a/server/.env.example b/server/.env.example index dbe02e7..a8bbee1 100644 --- a/server/.env.example +++ b/server/.env.example @@ -1,4 +1,3 @@ RECALL_API_KEY= RECALL_REGION="us-west-2" -RECALL_WEBHOOK_SECRET= OPENAI_API_KEY= \ No newline at end of file diff --git a/server/config.js b/server/config.js index 5e1e959..a829062 100644 --- a/server/config.js +++ b/server/config.js @@ -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]); @@ -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, };