Is there a way to read the redis value and save it in the nginx variable?
I want to use it for a multi-domain website where subdomains will point to different IP addresses. All subdomains will be saved in redis as follows:
"subdomain" => "address_for_proxy_pass"
So, I need to parse the subdomain (make), save it in a variable (done) and make a request redis (done) and save the result in a variable. How to do it easily?
source share