Nodejs site for tor network

Is there an easy way to use nodejs to build websites on a TOR network? I mean making my nodejs host accessible as .onion url? I have VDS / VPS with Linux on board.

+4
source share
1 answer

Starting a hidden service is simple.

First you need to install Tor, and then edit the configuration file to configure the hidden service.

Suppose your node application is running on port 8080, you will edit the configuration file torrcand add:

HiddenServiceDir /var/lib/tor/nodeapp
HiddenServicePort 80 127.0.0.1:8080

When you restart Tor, it initializes a hidden service (generates keys, etc.) and starts proxy port 80 on local port 8080 (node ​​application).

, /var/lib/tor/nodeapp/hostname, Tor, Tor node.

+4

Source: https://habr.com/ru/post/1650206/


All Articles