From 6456d30dba6b87ccf5c7ac0a122a2d940553aa36 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 29 Sep 2020 23:03:30 -0500 Subject: [PATCH] Update readme.md Added instructions to access the app from another machine --- readme.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/readme.md b/readme.md index 2cb410c..61a9f1b 100644 --- a/readme.md +++ b/readme.md @@ -26,6 +26,22 @@ Start the server with Now set point your browser to `http://localhost:8080` and put it in full screen mode (`F11` in Chromium). +### Access from another machine + +It's possible to access the app from another machine, but beware that by doing so you'll be exposing the app to your entire network, and someone else could potentially access the app and retreive your API keys from the settings page. By default the app is only accessible to `localhost`, but if you would like to open it up to your network (at your own risk!), open `/server/index.js` and remove `"localhost"` from the line that contains: + +```js +app.listen(PORT, "localhost", async () => { +``` + +so that it becomes: + +```js +app.listen(PORT, async () => { +``` + +The server will now serve the app across your network. + ## Settings - Your API keys are saved locally (in plain text) to `settings.json`.