Add section about ngrok for easy testing outside lan

This commit is contained in:
Peter Vacho 2025-01-11 18:46:09 +01:00
parent d03bed4b14
commit 7aa6813160
Signed by: school
GPG key ID: 8CFC3837052871B4

View file

@ -186,6 +186,21 @@ sudo docker-compose up -d
> mount](https://docs.docker.com/engine/storage/bind-mounts/#use-a-bind-mount-with-compose). By default, MongoDB will > mount](https://docs.docker.com/engine/storage/bind-mounts/#use-a-bind-mount-with-compose). By default, MongoDB will
> store the data in `/data/db` directory. > store the data in `/data/db` directory.
## Ngrok forwarding
If you need to quickly expose the server to the internet for testing purposes, you can use [Ngrok](https://ngrok.com/).
This tool allows you to create a secure tunnel to your localhost, which can be accessed from anywhere on the internet,
from a randomly generated ngrok subdomain. If you're using Arch Linux, you can install it from the AUR (e.g. with `paru
-S ngrok`)
Assuming you're running the server on `localhost:8000`, you can expose it by running:
```bash
ngrok http 8000
```
That said, if you're on the same LAN network, you can also use the local IP address of the machine running the server.
## Configuration ## Configuration
To configure the project, you can either set the environment variables manually or create a `.env` file in the root directory of To configure the project, you can either set the environment variables manually or create a `.env` file in the root directory of