I currently have this rule in my nginx config:
location /tun {
proxy_pass http://url.domain.com/mp3.mp3;
proxy_set_header X-Real-IP $remote_addr;
}
Which i use for tunneling in a private project. However, i want to make it dynamic.
I am looking for something like this:
location /tun/$URL$ {
proxy_pass $URL$;
proxy_set_header X-Real-IP $remote_addr;
}
So users can type in their own url's like that.
I understand there are security flaws in this, but i really want to see this happening!
Thanks in advance!