Proxy server
chrisooo3 opened this issue · comments
chrisooo3 commented
Hi, @seevik2580,
I would like to run tor-ip-changer
on a server with public ip for example 1.2.3.4
.
Then I would like to use that public ip and run the following command:
curl -x 1.2.3.4 http://checkip.amazonaws.com/
After each execution of this command, it will be nice if a different ip address will be returned.
How I should set up nginx on my server to redirect all requests to your app?
Thanks in advance!
chrisooo3 commented
I have found the solution:
Just run this command on your server:
docker run --net host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix seevik2580/tor-ip-changer ipchanger -g
Then in your nginx config:
location / {
proxy_pass http://127.0.0.1:9050/;
}
To control your tor-ip-changer
use:
telnet 127.0.0.1 14999