Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
Added instructions to access the app from another machine
  • Loading branch information
elewin authored Sep 30, 2020
1 parent 7f306e8 commit 6456d30
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 6456d30

Please sign in to comment.