sodal-project / cartographer-mvp

MIT License
3 stars 1 forks source link

WIP - Basic Ngrok setup #196

Closed tbenbow closed 1 year ago

tbenbow commented 1 year ago

This branch has an updated docker-compose.yml file and ngrok configuration file. This will create two ngrok tunnels. One for the client app and one for the API.

This should be considered a work in progress. We have a few tasks before this can be used to access the app remotely.

  1. Make the clients reference to the api url dynamic so it can be configured to point to the ngrok api tunnel url when making requests from an ngrok tunneled version of the app.
  2. Password protect the react client using htpasswd.
  3. Password protect the api using express-basic-auth.
  4. Store the NGROK auth token and other passwords in environment variables.

These 4 items should be all it takes but we should think about any other potential security holes we might have. Some of our data is stored on the server in JSON, can this be accessed directly without using the API?

tbenbow commented 1 year ago

We did not use this in the end but may in the future.