How can I get the value from Redis and put it in a variable in NGiNX? -
here config:
location = /session { set $redis_key "$cookie_session"; redis_pass 000.00.000.000:6379; echo $cookie_session; echo ' - '; echo $redis_key; } the echos there testing purposes. , hid ip.
i trying sessions data redis via nginx. why installed httpredis.
what don't understand how can data redis put in variable. can use please.
use nginx-eval-module: https://github.com/vkholodkov/nginx-eval-module
this how it:
eval $var { set $redis_key $uri; redis_pass 000.00.000.000:6379; }
Comments
Post a Comment