I was hoping to achieve something like this:
location = / {
if ($args ~ "^url=(.+)") { #gets the "url" get parameter
set $key1 $1;
proxy_pass $key1; #use the parameter as proxy address
}
}
Is this even possible ?
location / {
proxy_pass http://backend$arg_url;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With