I need to do some conditional actions in nginx that is working as a proxy. Basically it all boils down to being able to set some nginx variable from external source. It can be a bash script or result generated by url or something like that.
For example:
set $var = [result of http request]
or
set $var = [result of bash command]
Are there any reliable solutions for this? Modules? If it's not good idea to this with nginx, what are the alternatives?