From 7834881e7eaf12d27e719af91311c4111f9bf1d4 Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Mon, 1 Jul 2024 21:10:17 -0500 Subject: [PATCH 1/2] chore(config): use environment variables for TURN server credentials --- .env | 2 ++ src/config.js | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.env b/.env index 83ee8974a..aba3261ed 100644 --- a/.env +++ b/.env @@ -2,3 +2,5 @@ BROWSER=none REACT_APP_API_ROOT=https://farmhand.vercel.app/ REACT_APP_NAME=$npm_package_name REACT_APP_VERSION=$npm_package_version +REACT_APP_TURN_USERNAME= +REACT_APP_TURN_CREDENTIAL= diff --git a/src/config.js b/src/config.js index 097bd8c0b..746537d9a 100644 --- a/src/config.js +++ b/src/config.js @@ -53,23 +53,23 @@ export const rtcConfig = { }, { urls: 'turn:a.relay.metered.ca:80', - username: 'fd396a3275680a085c4d66cd', - credential: 'hFQmauZyx0Mv0bCK', + username: process.env.REACT_APP_TURN_USERNAME, + credential: process.env.REACT_APP_TURN_CREDENTIAL, }, { urls: 'turn:a.relay.metered.ca:80?transport=tcp', - username: 'fd396a3275680a085c4d66cd', - credential: 'hFQmauZyx0Mv0bCK', + username: process.env.REACT_APP_TURN_USERNAME, + credential: process.env.REACT_APP_TURN_CREDENTIAL, }, { urls: 'turn:a.relay.metered.ca:443', - username: 'fd396a3275680a085c4d66cd', - credential: 'hFQmauZyx0Mv0bCK', + username: process.env.REACT_APP_TURN_USERNAME, + credential: process.env.REACT_APP_TURN_CREDENTIAL, }, { urls: 'turn:a.relay.metered.ca:443?transport=tcp', - username: 'fd396a3275680a085c4d66cd', - credential: 'hFQmauZyx0Mv0bCK', + username: process.env.REACT_APP_TURN_USERNAME, + credential: process.env.REACT_APP_TURN_CREDENTIAL, }, ], } From 033f48e0e48e27242e484a4cb293d56dfc99cd60 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 02:18:39 +0000 Subject: [PATCH 2/2] 1.18.15 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 890aa9358..2ffe4cc46 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@jeremyckahn/farmhand", - "version": "1.18.14", + "version": "1.18.15", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@jeremyckahn/farmhand", - "version": "1.18.14", + "version": "1.18.15", "license": "GPL-2.0-or-later", "dependencies": { "@emotion/react": "^11.11.1", diff --git a/package.json b/package.json index ee7df5937..81b109781 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jeremyckahn/farmhand", - "version": "1.18.14", + "version": "1.18.15", "publishConfig": { "access": "public" },