Skip to content

hoprnet/uHTTP-exit-app

Repository files navigation

u(nlinked)HTTP exit application

Description

uHTTP exit application attaches to an exit node and performs arbitrary incoming HTTP requests for clients.

Deployment process

To contribute to this repository you will need to create a pull request. More information about the existing automated workflows can be found in GitHub Actions.

Run with Docker

To be able to run the Exit Node with Docker, you first need to build the image. For that, we will use the following command

docker build -t exit-node -f Dockerfile ../../

After building the image, you will be able to run it with:
(replace the values that have < >)

docker run \
-e HOPRD_API_ENDPOINT=<HOPRD NODE TO LISTEN TO> \
-e HOPRD_API_TOKEN=<HOPRD NODE ACCESS TOKEN> \
-e DEBUG="*" \
-e DISCOVERY_PLATFORM_API_ENDPOINT=<URL TO DP> \
-e DISCOVERY_PLATFORM_ACCESS_TOKEN=<DP ACCESS TOKEN> \
exit-node

Run with Docker Compose (run hoprd node too)

To run a exit-node and a hoprd node at the same time, run the following command in the exit-node directory:

docker compose up

When wanting to stop the exit-node and hoprd node, you can:

For linux or windows: CTRL + C

For OSX: CMD + C

or if you are running the docker as a daemon, execute the following command in the exit-node directory:

docker compose down