Install
git clone git@github.com:eShreder/http-proxy.git
cd http-proxy
pnpm build
Configure
- Change in
./config.json
port
andhost
- If you need TLS (HTTPS), you can use Let’s Encrypt and set path to keys in
tls
- Else remove
tls
Run
- start:
node dist
- check:
curl https://2ip.ru --proxy https://<host>:<port> -v
- start in docker:
docker run -d --name http-proxy -p <port>:<port> -v `pwd`:/opt/proxy -v /etc/letsencrypt:/etc/letsencrypt node node /opt/proxy/dist